How do I clean up self-intersecting polygons in a spatial database?

≯℡__Kan透↙ 提交于 2019-12-10 15:33:53

问题


I have some spatial data (MapInfo files) that contains self-intersecting polygons. These cause problems in my processing, in particular I can't generate geometric unions in PostGIS. Is there an easy way to resolve the issue? I can deal with multi-polygons if that should be necessary.


回答1:


I figured it out myself: an st_buffer(wkb_geometry,0) does the trick, at least on my sample data.



来源:https://stackoverflow.com/questions/4846391/how-do-i-clean-up-self-intersecting-polygons-in-a-spatial-database

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!