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
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
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
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
Judy
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