Geographic Information Systems Asked on January 9, 2021
Is there a way to select the holes (gaps) in a vector shapefile in QGIS, like the "fill holes" function which recognizes them indirectly?
I need to get the holes from the original shapefile and work with them.
Is there a way in other software like Arc?
If you dont mind a two step process:
Result:
Correct answer by MrXsquared on January 9, 2021
If you wish a one-step solution, you could also use "Geometry by Expression" with this expression:
difference(make_polygon(exterior_ring($geometry)),$geometry)
or a "virtual layer" with this query:
select difference(make_polygon(exterior_ring(geometry)),geometry) from PolygonWithHoles
Both will return a multipolygon of the holes.
Answered by MrXsquared on January 9, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP