Hi, I have a geopackage with 5 million polygons, some of which are duplicated, but with geometry that isn't exactly the same. In the image below the dark red’s polygones means there duplicates.
I trying with transfomer matcher with this set
It works but not all polygones duplicates are deleted. I got something like this
I know that at some point some polygons won't be able to be deleted because the geometry is too different.Maybe in can set the tolerance in 4 or more, but i think
Any idea if it can be done?
Thanks
Best answer by liamfez
“Do you know if it’s possible to calculate the overlapped area of the polygones to delete just all of them that overlap more than ‘%X’ by others polygones” @pabloolivaresm You could utilize the Clipper and the AreaCalculator.for this. If you calculate the initial area of the polygons, run them through the clipper and another AreaCalculator. Then using a StatisticsCalculator or Aggregator to sum the clipped areas per polygon you will get a total overlapped area. You can then use those numbers to get a %overlap.
Yeah, try changing the vector tolerance and see if you can find the sweet spot where it matches all the duplicates but nothing more.
@redgeographics Hi I’m now trying in a different way. I get the centroids of polygons and then with Pointonareaoverlayer I get those polygons who overlap more than ‘x’ centroids to delete them. My problem is some of then are overlapped just in the bords like this one:
I get also polygons that are overlapped in the center like this one
I’d need to delete just the polygons of the second exemple. Do you know if it’s possible to calculate the overlapped area of the polygones to delete just all of them that overlap more than ‘%X’ by others polygones
“Do you know if it’s possible to calculate the overlapped area of the polygones to delete just all of them that overlap more than ‘%X’ by others polygones” @pabloolivaresm You could utilize the Clipper and the AreaCalculator.for this. If you calculate the initial area of the polygons, run them through the clipper and another AreaCalculator. Then using a StatisticsCalculator or Aggregator to sum the clipped areas per polygon you will get a total overlapped area. You can then use those numbers to get a %overlap.
“Do you know if it’s possible to calculate the overlapped area of the polygones to delete just all of them that overlap more than ‘%X’ by others polygones” @pabloolivaresm You could utilize the Clipper and the AreaCalculator.for this. If you calculate the initial area of the polygons, run them through the clipper and another AreaCalculator. Then using a StatisticsCalculator or Aggregator to sum the clipped areas per polygon you will get a total overlapped area. You can then use those numbers to get a %overlap.
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.