AnsweredAssumed Answered

polygon.contains and polygon.getExtent()?

Question asked by shaningesri on Mar 9, 2018
Latest reply on Mar 14, 2018 by rscheitlin

I created a polygon from ar2D. 

var polygon_ = new esri.geometry.Polygon({

  "rings": ar2D,

  "spatialReference": {

  "wkid": 102100



var extent = polygon_.getExtent();

console.log("polygonExtent", extent);

var bContains = polygon_.contains(new esri.geometry.Point( ar2D[0] ));


However, the Results show:

the values of extent.xmax,extent.xmin,extent.ymax,extent.ymin are NaN

bContains = false

Unknwon why?  Thanks if you can help.