Query results double
I have a workflow that looks at the current Geometry, runs a query task on the service but the it doubles the results. In one area there are 3 geometries to return, which it does, but it returns it as a set of 6, each entry twice. Am I missing or adding an extra parameter?
-
You can verify what it is the input to the QueryTask and why the results is different from the one your expected with various ways.
(1) Direct way: Check what the mapservice returns on your spatial query task by catching the Fiddler with server side. To do it, you need to add the following lines to <system.net/> section on the Web.Config or the REST.
<defaultProxy>
<proxy proxyaddress="http://localhost:8888" bypassonlocal="False"/>
</defaultProxy>You can see what the input to query task on the layer with the geometry input looks like, and the output.
This is the best way to confirm why the result is different with the ones you expected.
(2) Indirect check: draw the markup of the geometry you used for the Query Task using 'AddMarkup' command, and Identity the same geometry area with the Selection Tool on the same geometry to see the result is the same as what your workflow does.
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
1 Kommentar