Skip to main content

I would like to find for each green point the closest orange building limited by the parcel border the green points are situated in. See the attached image below. The neighbourfinder should do the the trick but should not search in adjacent parcels for closeby buildings. Any suggestions?
 

Ps. This is a snapshot of my data. I have about 700 green points and their parcels and buildings.

 

If you first merge the parcel id to the overlapping buildings and points (SpatialRelator) you can then use that parcel id as group by in the neighbourfinder.


@nielsgerrits thanks! Almost solved my problem, a new issue I faced is that some buildings are situated on 2 parcels which leads sometimes to a wrong allocation of parcel id to the buildings. For now I think I have to subdivide my buildings into subpolygons which makes it possible to link the correct parcel ids to these subpolygons.

Building in orange - Parcels in light brown:

 


Yes this is probably a logical next step.

Another tip is to use the GeometryExtractor and GeometryReplacer to temporarily store the original geometry of a feature to an attribute and restore it after a merge / match / other action.

With the NeighborFinder it sometimes helps to switch the lookup aroud. Instead of looking from points to buildings, look from building for points.


Reply