从 varchar (x,y) 创建点几何图形
我有一张很大的位置表。这些位置采用 varchar 格式,写为 (x,y)。我需要为所有位置创建一个单独的点。我已在表中创建了一个点几何列,但无法弄清楚如何根据位置所在的格式为位置创建点。
地理数据坐标位于 (x,y) 的单列中 例如(52.3852758,4.8682022)
我正在使用此脚本但出现错误。
更新“tlblocation”设置 geom=ST_GeomFromText(geodata);
任何帮助将不胜感激
I have a large table of locations. The locations are in varchar written as (x,y). I need to create a individual point for all of the locations. I have created a point geometry column in the table but can't figure how to create points for the locations from the format that they are in.
geodata coordinates are in a single column of (x,y)
e.g (52.3852758,4.8682022)
I am using this script but getting error.
update "tlblocation" set geom=ST_GeomFromText(geodata);
Any help would be much appreciated
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 ST_* 函数。 IE:
You can use ST_* functions. ie: