Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Admin > Re: Problem wit...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 4943 of 5167
Post > Topic >>

Re: Problem with GeomFromText('POINT(...

by epailty@[EMAIL PROTECTED] ("Brian Modra") Apr 28, 2008 at 09:55 AM

The "long" column isn't being referenced the way you've written this,
because its inside of a quoted string.
You need to construct the string
GeomFromText('POINT(' || public.Contenedor.long || ' 49.8543)', 4326)

2008/4/28 J Fran <jllfnpg@[EMAIL PROTECTED]
>:
>
>  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!



-- 
Brian Modra Land line: +27 23 5411 462
Mobile: +27 79 183 8059
5 Jan Louw Str, Prince Albert, 6930
Postal: P.O. Box 2, Prince Albert 6930
South Africa

-- 
Sent via pgsql-admin mailing list (pgsql-admin@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
 




 2 Posts in Topic:
Problem with GeomFromText('POINT(...
jllfnpg@[EMAIL PROTECTED]  2008-04-28 09:34:49 
Re: Problem with GeomFromText('POINT(...
epailty@[EMAIL PROTECTED]  2008-04-28 09:55:30 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Aug 21 22:22:33 CDT 2008.