I have a web map application where the user can draw a polygon and save it to the database through a feature access-enabled ArcGIS map service.
The problem occurs when the user creates self-intersecting polygons (see Figure 1 below). This causes an error 'Error: Linestring or poly boundary is self-intersecting' in ArcGIS Server, as recorded by the logs (see Figure 2 below).
Figure 1: Self-intersecting polygon drawn by user
Figure 2: ArcGIS Server logs
My questions: is there a workaround for this error? Do I need to change some configuration on my map service? Unable to find a related setting.
And why does this error not occur in ArcMap?
As far as I can gather, this error happens due to a geometry validation issue (ArcGIS Help 10.1 ).
I'm guessing ArcMap uses some validation (e.g. ArcObjects 10 .NET SDK Help) in the background to account for this?
Any information would be appreciated.
We are using Web App builder based web application (version 2.0.1).
Customization in the basic app builder framework was done based on the application requirement and design
For edit widget, we have used the out of box app builder edit widget, without any customizations.
We will try to set the snapping tolerance and will let you know the outcome.