Question

Merge two touching polygons from separate layers into one layer

  • 10 December 2021
  • 1 reply
  • 3 views

I have a layer representing building polygons and another layer showing garden polygons; what I need is to create one merged polygon representing a building and a garden.

 

This is based upon whether the building polygon touches/abuts (borders) a garden polygon, however this must be a 1:1 relationship so if there is more than one garden that the building abuts, then it must choose the garden polygon it has the longest edge with.

 

I have tried to use the NeighborFinder and Dissolver, but it does not seem to work between the two polygon layers.

 

Any ideas are welcome. Thank you.


1 reply

Badge +2

@djrene​ If you can attach a small example dataset that would give us something to work with. Dissolver and NeighborFinder should work fine across different layers.

But you might want to start with SpatialRelator first. This will help identify which buildings have more than one garden area attached and then you can process those separately. Finding the garden with the longest common edge will be tricky.

Reply