Select to view content in your preferred language

QueryTask with the self-crossing polygon issue

787
1
Jump to solution
09-19-2012 05:26 AM
YuryVoychuk
Deactivated User
Sending simple polygon geometry via QueryTask the "ExecuteCompleted" event fires OK, but while send the self-crossing polygon - the only "Failed" event fires. Using ArcGis demo server URL everything is OK. Issue occurs only on our ArcGis Server URL. What`s wrong? What kind of ArcGis Server setting we should configure?
Thanks.

P.S. we have ArcGis Server 10.1

[ATTACH=CONFIG]17797[/ATTACH]
0 Kudos
1 Solution

Accepted Solutions
ChristopherHill
Deactivated User
You can call the simplify task on the geometry before sending it to the query task. The simplify call will return a geometry that is not self crossing and will return the correct results. Here is an example of the using Simplify on a geometry before using it to query results.

View solution in original post

0 Kudos
1 Reply
ChristopherHill
Deactivated User
You can call the simplify task on the geometry before sending it to the query task. The simplify call will return a geometry that is not self crossing and will return the correct results. Here is an example of the using Simplify on a geometry before using it to query results.
0 Kudos