How to identify if point feature is within polygon feature
I've been tasked with creating a workflow that prompts a user for an address and then determines whether or not that address is within a certain district and then notifies the user with the result. I already have a working workflow that does the address part and zooms to that address but I'm stuck on how to determine if it's within a district. Can anyone provide me with some ideas, activities, or code samples to point me in the right direction?
Thanks, Gary
0
-
Is the address from a map layer, or are you geocoding it? Either way, you could use that geometry to query your district layer. Basically, use a Query Task activity to query the layer using the geometry (and a where clause query if you're looking in a specific district), and then use either an If activity or a flowchart decision to test whether or not your resulting feature class is empty. So if your feature set variable was called resultFeatureSet, then the query to test the results would be resultFeatureSet.Features.Count() = 0 0 -
John,
Thanks very much. That's exactly what this novice workflow programmer needed! I've got the workflow working now.
Gary0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
2 kommentarer