Skip to main content

Hi!

I need help creating a basic translation for identifying and writing to shapefile the gaps between polygons on one layer. I don't know how to begin!

I really appriciate some tips on what transformers to use and how to configure them too look for the gaps that are millimeters in size. I dont need the translation to repair the gaps, I just want to find them to investigate myself.

Hi @sofiamvalentin, could you send a example of your polygons? You can try to use the transformer AreaonAreaOverlayer to find ( with Tester ) the polygons are not touching. And try to use transformers Snapper or AnchoredSnapper to have a good solution.

Danilo


To find all gaps you can create a bounding box of all polygons (BoundingBoxAccumulator).

Then feed all polygons and the bounding box to the AreaonAreaOverlayer.

Then use a Tester (_overlaps = 1) to get the gaps (they should only have the bounding box at that location).


Finding gaps and overlaps is quite simple.

Please see the attached workbanch.find-gaps-overlaps.fmw

 


Firstly repair the polygons to resolve the gaps (Snapper or SliverRemover), dissolve them to form a single large polygon (Dissolver), and then clip the large polygon by the original polygons (Clipper). I expect that the resulting features output from the Outside port of the Clipper would be narrow polygons that represent the gaps between the original polygons.


Reply