Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Problem with GeomFromText('POINT(...



I'm trying upate a group of records. In the table I have 1 field geometry and 2 fields ineteger with long. and lat. everyone. I try to update the field geometry with point(long lat).
 
I use this update with numbers and this is ok.

UPDATE
public."Contenedor"
SET
ubicacion = GeomFromText('POINT(1.9845 49.8543)', 4326)

but when i change the number by a field this is not ok. :

UPDATE
public."Contenedor"
SET
ubicacion = GeomFromText('POINT(public.Contenedor.long 49.8543)', 4326) 


I have this error.

ERROR: parse error - invalid geometry
Estado SQL:XX000
Contexto:SQL function "geomfromtext" statement 1

Everyone can tell ma some solution please.
 
Thank you.
 
 



Discover the new Windows Vista Learn more!


Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group