How to clear self-intersecting polygons in a spatial database?

I have some spatial data (MapInfo files) containing self-intersecting polygons. This causes problems in my processing, in particular I cannot generate geometric joins in PostGIS. Is there an easy way to solve the problem? I can deal with polygons if necessary.

+4
source share
1 answer

I realized this myself: st_buffer(wkb_geometry,0) does the trick, at least on my data samples.

+4
source

Source: https://habr.com/ru/post/1337701/


All Articles