Query Task using geometry (Overlaps) is returning an error
Hi,
I have a workflow that starts with a GeometryCaptureType.MapPoint to select a parcel and then I would like to use the geometry of the result (the featureSet fsParcel) to select all the polygones from another layer that intersect with the selected parcel. The problem seems to occure in the Zone selection activity. Here is a screenshot of the initial part of the workflow and the error I get:
_img_ alt="User-added image" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=906f2000000Xc3U&feoid=Body&refid=0EMf2000000YCqL"_/_img_
_img_ alt="User-added image" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=906f2000000Xc3U&feoid=Body&refid=0EMf2000000YCqG"_/_img_
Any help will be appreciated,
Badre
0
-
Some things I'd check first: - Does geoLot have it's spatial reference set?
- Does fsLot contain any features at all?
- Is there anything relevant in the ArcGIS server log?
- Is that Query Task really the activity that breaks? The name of the activity in the Alert does not match (e.g. Zone Selection vs Selection de la zone) Or did you translate it in the mean time? If you're not sure, type 1.79 in the workflow designer's search box to select the activity.
0 -
Some things that stand out to me:
First, like Berend said, the activity names aren't matching up. Perhaps you made a change between taking both images, but perhaps you have identified the wrong source for your problem.
Secondly, your error is very general but typically errors on queries have slightly more information. Check that yocan access that url from the essentials server, check that you don't need credentials, and if that all looks good I'd hit the rest enpoint directly with your geometry to see if you can get more information from the server. Use the featureset.toJson method on your fsLot to get that geometry, if it is indeed the zone query that is your problem.0 -
Hi,
1- geoLot is the result of the GeometryCaptureType.MapPoint activity. I didn't set it's spatial reference. Where can'I do that?
2- fsLot contains features.I also verified that in the workflow by inserting an Alert activity to show tne number of features selected by the first query that uses the result (geoLot) of GeometryCapture activity.
3- I did translate le display name of the activity and 1.79 in the search box points to Zone selection activity
I have acces to the Essentials server and will try your suggestions.
Thank you very much!0 -
Hi Badradine,
The spatial reference of the Geometry returend by Capture Geometry activity will always match the spatial reference of the map.
The spatial reference of the map is set by the bottom-most map service.
I usually use a Get Map Info activity to get the spatial reference from the map at the start of the workflow, so I have it in a variable and otherwise don't need to keep track of it.
Regards,
-Malcolm0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
4 Kommentare