[postgis-users] GeometryFromText - OGC WKT not recognized

Mike Leahy mgleahy at fes.uwaterloo.ca
Thu Apr 14 14:35:57 PDT 2005


Hello list,

I'm just wondering if anyone else has this problem with PostgreSQL 8.0.2
/ Postgis 1 RC6 / WinXP SP2:

I can do the following:

testdb=# select 'srid=-1;POINT(1 1)'::geometry;

To get:

                  geometry
--------------------------------------------
 0101000000000000000000F03F000000000000F03F
(1 row)

However, if I use the GeometryFromText function, I get the following error:

testdb=# select GeometryFromText('POINT(1 1)', -1);
ERROR:  Invalid OGC WKT (does not start with P,L,M or G)


Miguel's previous posting reminded me of this problem I had - is this a
problem that has already been solved, or am I doing something wrong?

Thanks,
Mike



More information about the postgis-users mailing list