[postgis-users] unit

strk at refractions.net strk at refractions.net
Tue Jan 24 04:24:17 PST 2006


On Mon, Jan 23, 2006 at 03:45:51PM -0600, David Bitner wrote:
...
> you can look at a a geometry using astext(geom) this will
> give you the srid for the given projection. 

Since version 1.1.0 asText() doesn't return the SRID anymore.

The 'SRID=#;' prefix to WKT is a postgis extension, thus
only returned by asEWKT() and no more by asText(), which
is an OGC defined method.

Alternatively, the OGC standard SRID(geometry) function
will be available on all PostGIS versions.

--strk;



More information about the postgis-users mailing list