pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: J Fran <jllfnpg@hotmail.com>
To: Lista Correo PostgreSQL <pgsql-admin@postgresql.org>
Subject: Problem with GeomFromText('POINT(...
Date: Mon, 28 Apr 2008 09:34:49 +0200
Message-ID: <BLU129-W15101F30E08EA814FE3A21BADE0@phx.gbl> (raw)


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
http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE=

view thread (2+ messages)  latest in thread

Message-ID: <BLU129-W15101F30E08EA814FE3A21BADE0@phx.gbl>
Permalink:  ../BLU129-W15101F30E08EA814FE3A21BADE0@phx.gbl/
Also on:    postgresql.org/message-id/BLU129-W15101F30E08EA814FE3A21BADE0@phx.gbl

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: jllfnpg@hotmail.com
  Subject: Re: Problem with GeomFromText('POINT(...
  In-Reply-To: <BLU129-W15101F30E08EA814FE3A21BADE0@phx.gbl>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox