[postgis-users] Update geometry

Emily Gouge egouge at refractions.net
Wed May 10 14:03:25 PDT 2006


It looks like the WKT of your geometry is incorrect - you need and extra set of ()'s.
Try:
UPDATE ag_planosbn_18 SET geo_poligono = GeometryFromText('MULTIPOLYGON(((278575.4298 
8668096.767,278596.3218 8668096.767,278596.3218 8668107.4804,278575.4298 8668107.4804,278575.4298 
8668096.767)))',24878) WHERE gid = '10'

Emily

Fernando Luyo wrote:
> Hi, I am new in postgis 
> 
> the following line :
> 
> UPDATE ag_planosbn_18 SET geo_poligono = GeometryFromText('MULTIPOLYGON((278575.4298 8668096.767,278596.3218 8668096.767,278596.3218 8668107.4804,278575.4298 8668107.4804,278575.4298 8668096.767))',24878) WHERE gid = '10'
> 
> it gives east message me of error : 
> 
> ERROR:  couldnt parse object in GEOMETRY
> 
> 
> some recommendations
> 
> thank
> 
> Fernando Luyo
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users




More information about the postgis-users mailing list