Select to view content in your preferred language

ExteriorRing.IsSimple returns false on ArcGIS Runtime SDK 10.2.2

1389
3
05-08-2014 07:07 AM
Labels (1)
ArtemBulat
Emerging Contributor
I have updated to ArcGIS Runtime SDK 10.2.2 and now when I'm drawing triangle ExteriorRing.IsSimple returns false when on previous version it was true. Now I cannot validate if polygon has self-intersections.
0 Kudos
3 Replies
MichaelBranscomb
Esri Frequent Contributor
Hi,

Please can you provide a small code sample which shows the problem?

Cheers

Mike
0 Kudos
ArtemBulat
Emerging Contributor
The code is quite simple really :
    public PolygonValidationResult Validate(IPolygon polygon)
    {
      return polygon.ExteriorRing.IsSimple ? new PolygonValidationResult(true) :
                                             new PolygonValidationResult(false, NetworkResources.PolygonShouldNotSelfIntersectMessage);
    }

On previous version of ArcGis when I draw triangle, then close polygon programmatically and validate it - it returned true, now, on newest version, without any additional code changes, it started to return false.
0 Kudos
MichaelBranscomb
Esri Frequent Contributor
Hi,

Please can you confirm which product you are using?

Cheers

Mike
0 Kudos