[postgis-users] geometryFromText() dropping SRID

David Blasby dblasby at refractions.net
Wed Mar 24 09:51:51 PST 2004


Markus Schaber wrote:

> Hi,
> 
> Is it intentional that geometryFromText() ignores the given SRID?
> 
> logibox=# select geometryFromText('SRID=2000;POINT(9.1833 47.65)');
>       geometryfromtext      
> ----------------------------
>  SRID=0;POINT(9.1833 47.65)
> (1 Zeile)


yes - geometryfromtext() expects wkt.  It should actually throw an error 
if you have an "SRID=<srid>;" in your WKT.

dave



More information about the postgis-users mailing list