Find Points within Polygons
I have a fairly simple workflow where I am trying to identify tobacco facilities that fall within 1000 feet of a school. I've created a buffer layer around the schools and my basic workflow is as follows:
Query the Buffer layer
Get the geometry of the resulting buffer feature set
Using a For Each - Query the tobacco facilitiy layer using the geometry of the buffer layer.
However, I have an alert at the end showing the tobacco facility query result count and it keeps returning 0, like none of the facilities fall within the buffer, but I know they do.
Any ideas what I'm doing wrong? My workflow is below.
https://drive.google.com/open?id=1A7iOvq1zZ0zzs3vfBKxH6f_eV8MtUPzB
0
-
Hi Lisa,
It looks like right now your workflow:- queries all features in your layer [bufferFeatureLayerURL]
- gets the geometry from the first feature that was returned by that query
- goes through each feature that was returned in step 1. For each one, it runs a second query on [buyFeatureLayer], which looks for things that interect the geometry from step 2.
- We show (alert) the count of features found by the query in step 3
Hope that helps!
-Amanda0 -
Thank you Amanda! That did it! 0
Please sign in to leave a comment.
Comments
2 comments