the problem about the geometry - Mailing list pgsql-admin

From Hyung Joo Lee
Subject the problem about the geometry
Date
Msg-id 3E94D039A2B82544B3E7D48F924B0B255D0F7EB256@base.imrc.kist.re.kr
Whole thread Raw
List pgsql-admin

Dear all.

 

I input the command below:

 

UPDATE iphone_en SET location = GeometryFromText(cast(POINT('||cast(latitude as varchar(10))||', '||cast(longitude as varchar(10))||') as geometry),-1);

ERROR : invalid input syntax for type double precision: "||cast(latitude as varchar(10))||"

 

DB has some fields(name, id, ----, latitude, longitude, ----, location).

 

I made the field of location using by addgeometrycolumn.

 

I want to input the value(latitude, longitude) to location.

 

How can I input the right command?

 

 

 

 

Best regards and thanks in advance

Kevin.

pgsql-admin by date:

Previous
From: dx k9
Date:
Subject: Postgresql & PAM & AD
Next
From: "Thorne, Francis"
Date:
Subject: Re: AIX - Out of Memory