Hi members,
I have the problem of cleaning some polygon data .
They present several overlaps and I want to clean them removing the overlaps and retaining all the attributes of the original polygons.
The solution I have been able to realize is based of the indication I have found at this link
https://blog.cleverelephant.ca/2019/07/postgis-overlays.html
This solution requires several steps:
- Extracting the exterior rings
- Unioning them to create a multilinestring composed of linestrings splitted at intersections
- Polygonizing the multilinestring in order to create a multipolygon
- Converting the multipolygon to separate polygons each one with the number of overlapping origins
I wonder if a more direct solution could be possible.
Regards
Antonio
Il giorno 20 dic 2024, alle ore 09:04, Antonio Valanzano <anva...@gmail.com> ha scritto:
Hi members,
I have the problem of cleaning some polygon data .
They present several overlaps and I want to clean them removing the overlaps and retaining all the attributes of the original polygons.
<polygon_overlapping.jpeg>
The solution I have been able to realize is based of the indication I have found at this link
https://blog.cleverelephant.ca/2019/07/postgis-overlays.html
This solution requires several steps:
- Extracting the exterior rings
- Unioning them to create a multilinestring composed of linestrings splitted at intersections
- Polygonizing the multilinestring in order to create a multipolygon
- Converting the multipolygon to separate polygons each one with the number of overlapping origins
<new_polygons.jpeg>
I wonder if a more direct solution could be possible.
Regards
Antonio
--
You received this message because you are subscribed to the Google Groups "SpatiaLite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spatialite-use...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/spatialite-users/3ecfec5a-6b1a-475d-a5b2-846117c45792n%40googlegroups.com.
<polygon_overlapping.jpeg><new_polygons.jpeg>