Thanks, that is rigth!! 2012/6/18 Greg Polanski <polanski.g...@yahoo.com>
> ST_CoordDim(geometry) gives 2 for 2D coordinates, 3 for 3D coordinates. > > If you want to use old commands like "dimension" with a recent postgis > version, you have to run legacy.sql that comes with your postgis > installation. But note the st_dimension and st_coorddim are different > things! > > Greg > > ------------------------------ > *From:* José María Amuedo <jmamu...@gmail.com> > *To:* PostGIS Users Discussion <postgis-users@postgis.refractions.net> > *Sent:* Monday, June 18, 2012 11:36 AM > *Subject:* Re: [postgis-users] How to use dimension(geometry) command > > Hi, > > I meant dimension(geometry) to know if my consulted data is 2D or 3D. > > I found in the oficial documentation that if you use dimension(geometry) > you get 2 for 2D or 3 for 3D data. > > Do you know something about this? > > Thanks, > > José María > > 2012/6/18 Nicolas Ribot <nicolas.ri...@gmail.com> > > Hi, you mean st_dimension ? > > select st_dimension(geom). Returns 0 for points, 1 for linestrings, 2 > for polygons. > > Nicolas > > On 18 June 2012 09:37, José María Amuedo <jmamu...@gmail.com> wrote: > > Hello, > > > > I would like to know how can use the dimension(geometry) command. > > > > Thanks, > > > > Jose María > > > > _______________________________________________ > > postgis-users mailing list > > postgis-users@postgis.refractions.net > > http://postgis.refractions.net/mailman/listinfo/postgis-users > > > _______________________________________________ > postgis-users mailing list > postgis-users@postgis.refractions.net > http://postgis.refractions.net/mailman/listinfo/postgis-users > > > > _______________________________________________ > postgis-users mailing list > postgis-users@postgis.refractions.net > http://postgis.refractions.net/mailman/listinfo/postgis-users > > > > _______________________________________________ > postgis-users mailing list > postgis-users@postgis.refractions.net > http://postgis.refractions.net/mailman/listinfo/postgis-users > >
_______________________________________________ postgis-users mailing list postgis-users@postgis.refractions.net http://postgis.refractions.net/mailman/listinfo/postgis-users