AnsweredAssumed Answered

polygon.contans (point) returns false

Question asked by shaningesri on Mar 9, 2018
Latest reply on Mar 9, 2018 by vangelo-esristaff

I created  a polygon as shown below and the check if this polygon contains a point of that is a part of the polygon::

var polygon_2 = new esri.geometry.Polygon({

  "rings": ar2D,

  "spatialReference": {

  "wkid": 102100

  }

});

var bReturn = polygon_2.contains(new esri.geometry.Point(ar2D[3]));

However, the bReturn value is false.  What's wrong in my code?  Thanks.

Outcomes