Select Polygon feature from selected Point feature
Hi everyone,
I've been trying to create a workflow that will select and display a parcel polygon based on a user query of an address centoid/point. Using on the discussion in this link (https://support.geocortex.com/essentialsGSCForum?main-nav=essentials&sub-nav=forum#!/feedtype=SINGLE_QUESTION_SEARCH_RESULT&id=9066000000009PYAAY) , I'm getting an error at the second QueryTask step that uses the geometry of the UnionTask:
_img_ alt="User-added image" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=906f2000000k9ck&feoid=Body&refid=0EMf2000000fxYE"_/_img_
Any help would be appreciated.
Thanks,
Gary
0
-
What's the error? Can you temporary highlight in the viewer SelectedGeometry to ensure that it contains values that you are expecting? 0 -
Hi Gary,
It doesn't look like anything's wrong with the configuration of the two activities that you included. Like Francesca said, I'd recommend double checking the outputs leading up to the QueryTask with the error. here's some tests you could do in a case like this-- An Alert with resultFeatureSet.Features.Count.ToString will confirm the number of results in the first featureset
- A Run External Command activity with Command: "AddMarkup" and Parameter: selectedGeometry would help you confirm that the geometry that comes from the UnionTask looks right.
- Running the QueryTask with Where 1=1 instead of Geometry selectedGeometry will confirm that the query service url works.
-Amanda0
Please sign in to leave a comment.
Comments
2 comments