ArcGIS Server: Linestring or poly boundary is self-intersecting

894
4
03-10-2017 02:45 AM
Ying_BoWang
New Contributor II

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).

Self-intersecting polygon

Figure 1: Self-intersecting polygon drawn by user

ArcGIS Server Logs

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.

0 Kudos
4 Replies
JayantaPoddar
MVP Esteemed Contributor

What is the version of ArcGIS Server? And what database are you using?

0 Kudos
Ying_BoWang
New Contributor II

ArcGIS Server 10.4. Feature access-enabled Map Service was published using ArcMap 10.2.2.

SQL Server Enterprise Geodatabase. ArcGIS 10.2.2 database.

0 Kudos
JonathanQuinn
Esri Frequent Contributor

What type of application are you using?  Whenever I've seen polygon editing templates in applications, they always maintain those types of topology rules for polygons, (for example, using a rectangle, circle, or polygon template or freehand).  They will all make sure that all lines are connected.  The WAB has an edit widget where you can define snapping tolerances.  If you're using the Javascript API, maybe that's something you can look into.

0 Kudos
Ying_BoWang
New Contributor II

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.

0 Kudos