Re: [postgis-users] Error on updating geometry column from two columns value

2011-12-01 Thread Mike Toews
ST_GeomFromText turns WKT into a geometry, not SQL. You can either format WKT (text) using: ST_GeomFromText('POINT(' || NEW.koordinat_x || ', ' || NEW.koordinat_y || ')', 32748) Or, a simpler/faster/lossless geometry constructor would be to pass the floating point values directly to a point

Re: [postgis-users] Error on updating geometry column from two columns value

2011-12-01 Thread Firman Hadi
Dear Mike, Thank you for the solutions. I will try it. Thanks again. Cheers, Firman. On 12/2/11 5:16 AM, Mike Toews wrote: ST_GeomFromText turns WKT into a geometry, not SQL. You can either format WKT (text) using: ST_GeomFromText('POINT(' || NEW.koordinat_x || ', ' || NEW.koordinat_y ||