[MAPSERVER-USERS] problem with GeomFromText - updating PostGis table

Brent Wood pcreso at pcreso.com
Mon May 5 03:07:16 EDT 2008


--- SUSANNE <susanne.kalliany at tefis.at> wrote:

Hi Susanne,

Try having LINESTRING (upper case) instead of linestring.

HTH,

  Brent Wood


> 
> Hello to everyone,
> 
> I have a mapserver/PostGreSQL/PostGis application where I am now able to
> show PostGis layers.
> 
> To insert lines I want to set following commands with php:
> 
> $sql_i = "insert into zobject3 (the_geom) VALUES (GeomFromText('linestring
> (-99232 261118,-98232 262118)',31282) ) ";
> pg_query($sql_i);
> 
> I get following error message:
> Query failed: ERROR Invalid OGC WKT (does not start with P,L,M,C or G)
> 
> Inserting a (non geomtric parameter) with following command works OK:
> 
> $sql_i = "insert into zobject3 (name) VALUES ("test")
> pg_query($sql_i);
> 
> I would be very pleased if anyone can give me some usefull hint. 
> 
> Thanks a lot, 
> 
> Susanne Kalliany
> 
> -- 
> View this message in context:
>
http://www.nabble.com/problem-with-GeomFromText---updating-PostGis-table-tp17053946p17053946.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> 
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 



More information about the mapserver-users mailing list