Skip to main content
Question

Select near features with specific query


Forum|alt.badge.img
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

5 replies

david_r
Evangelist
  • June 29, 2015
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

Forum|alt.badge.img
  • Author
  • June 29, 2015
Thanks David..I will try and let you know

fmelizard
Contributor
Forum|alt.badge.img+17
  • Contributor
  • June 30, 2015
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

Forum|alt.badge.img
  • Author
  • June 30, 2015
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

fmelizard
Contributor
Forum|alt.badge.img+17
  • Contributor
  • July 1, 2015
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

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings