查询函数返回许多行的函数
我有一个带有几何列的表。这些几何形状通常是多重法或多源,我想将它们分成其组成部分,而不复制排行中的其他数据。目前,我使用以下内容:
创建表格为SELECT INDEX,ST_DUMP(几何)作为初始尺寸
的几何形状,
这无问题,并生成newtable
,带有多边形和linestrings和Linestrings,以及其行的参考列中的initialtable
包含其他相关信息。
但是,我想整合找到的进度跟踪,找到在这里上述语句可能需要一些时间。
因此,我想将上述语句拆分为1)创建表2)填充表
很容易,但是填充表使我逃脱了,因为一条多线行可以创建许多线条行。
任何帮助将不胜感激。
I've a table with a geometry column. Those geometries are often multipolygons or multilinestrings and I would like to split them into their constituent parts without duplicating the other data in there rows. At the moment i use the following:
CREATE TABLE newTable AS SELECT index, ST_Dump(geometry) AS geometry FROM initialTable
This works without a problem and produces newTable
with polygons and linestrings and a reference column for it's row in the initialTable
containing other relevent info.
I would however like to incorporate progress tracking found here as the above statement can take some time.
I would therefore like to split the above statement into 1) creating the table 2) populating the table
The first is easy, but populating the table escapes me as one multilinestring row can create many linestrings rows.
Any assistance would be greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在
中使用
,然后将结果设置为st_dump
选择insert
语句,例如:Use
ST_Dump
in aSELECT
and redirect the result set to theINSERT
statement, e.g.: