【发布时间】:2018-11-14 01:03:10
【问题描述】:
我有以下 postgis 查询:
select st_pointonsurface(geometry), geometry, other, important, columns
from my_polygons;
在~2.5m 结果之后,有一条函数失败的记录。
ERROR: GEOSPoint OnSurface: TopologyException:
Input geom 1 is invalid: Self-intersection at or near
point -9083598.0378282126 3646413.3039207752 at -9083598.0378282126 3646413.3039207752
查看几何图形,我明白为什么会失败。这是一个糟糕的多边形。
我也愿意
- 忽略该行(从结果集中过滤它);或
- 忽略该列(将其转换为
null并返回其他列)。
我怎样才能得到这些结果?
【问题讨论】:
标签: postgresql postgis