Skip to main content
Hi,

 

 

I have hospitals data (points) and trying to select the buildings (polygons) near to each hospital where the total people living within these selected buildings between 1000- 2000 persons...any idea how to perform that? 

 

 

Thanks
Hi

 

 

If a straight line distance is enough, you can use a Bufferer and iterate (https://knowledge.safe.com/articles/Samples_and_Demos/Looping-within-a-Custom-Transformer) over different sizes until the number of inhabitants gets within range. I suggest converting your building polygons to points (e.g. CenterPointReplacer) and using the PointOnAreaOverlayer on the buffer.

 

 

David
Thanks David..I will try and let you know
Hi,

 

Have a look at the NeighborFinder transformer,its not that easy at first to use but once you get it its a very powerful transformer for distance calculations.

 

See this page for examples: https://knowledge.safe.com/articles/Samples_and_Demos/Passing-attributes-between-features-in-close-proximity

 

Make sure you create a list on the resulting features to test for the number of ppl.

 

Itay
Hey Italy and thanks for the reply...somehow it works for me and I got the total population for the near plots, but how I can export the list of candidates matching the criteria...(each hospital the list of buildings selected by the NeighborhoodFinder)..Thanks

 

 

Judy
Hi,

 

In case of a 1:1 relationship I would merge the selected buildings with the original building features to get the selection.

 

If a 1:N relationship exist you can choose to explode the list and then merge.

 

Itay

Reply