[postgis-users] HELP adding spatial field to table
Gregory Williamson
Gregory.Williamson at digitalglobe.com
Tue Dec 11 15:51:18 PST 2007
Richard:
> Next (and where the trouble lies)
>
> UPDATE crimetest
> SET geom = PointFromText('POINT(' || x || ' ' || y || ')', 4326)
>
try:
ST_MakePoint(<x>, <y>, [<z>], [<m>])
Creates a 2d,3dz or 4d point geometry.
Less messing around with making a test string ...
HTH,
Greg Williamson
Senior DBA
GlobeXplorer LLC, a DigitalGlobe company
Confidentiality Notice: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information and must be protected in accordance with those provisions. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
(My corporate masters made me say this.)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20071211/50a1697e/attachment.html>
More information about the postgis-users
mailing list