search with a spatial filter?
In ADF it was possible to add a spatial filter to a SearchWorkflow to search for points in a specific polygon. An example would be the Parcel Value Search Definition in the Charlotte ADF site.
Can the "Filter By Geometry" box in the Form Designer be used to accomplish that type of search in a Workflow? I tried a couple of configurations but I couldn't see that checking the box changed anything.
Thanks,
Steve
-
Hi Steve,
The Filter By Geometry checkbox in the form designer will filter the values of an autocomplete or combobox in the form, if you have supplied a geometry to the form.
To filter a search to only return results within a specific geometry (polygon etc), use the Query Task activity and supply the geometry that you want the results to intersect in the Geometry field.
-Victoria
0 -
Thanks for the info, Victoria. I'll give that a try.
Steve
0 -
I finally had a chance to get back to this. I have a workflow configured that will select the desired points within a polygon, which is a county boundary.
I'm still not able to duplicate what I have in the WebADF version of the site, though, because this Workflow requires a mouse click on the desired county to capture the geometry. In our WebADF site the user selects the county name from a dropdown and the spatial filter in the WebADF Search Workflow selects only those points within the geometry of the county.
My problem at this point is I don't know how, or if, I can define the geometry based on selection of the desired county name from a dropdown list. I want to do away with the mouse click and have the geometry defined by the selection of the county name. Is that possible?
0 -
Yes, this is possible. It will involve two query tasks, one to get the geometry of the polygon, and another to get the points within that polygon. You can use the Geometry field on the second query task to filter the results based on the geometry of the feature returned by the first query. (https://support.geocortex.com/Data/Sites/1/media/forumfiles/selectschoolsbyzip.zip) Here is an example that will work with the Charlotte ArcGISOnline sample site. It selects schools within the zip code that you select from a drop down.
I hope this helps!
-Victoria
0 -
Thank you, Victoria! That was the info I needed.
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
5 kommentarer