<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Calculate geodesic area of polygon. in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calculate-geodesic-area-of-polygon/m-p/367600#M34093</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thomas, thanks for reply. I tried to implement using that method but I got something error that I am not aware of. Here is the snippet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function showPolygon(){&lt;/P&gt;&lt;P&gt;var myPolygon = {"geometry":{"rings":[[&lt;BR /&gt; [-96.880511,34.209403], [-96.880378, 34.20944], [-96.880158, 34.209623], [-96.879584, 34.209696],&lt;BR /&gt; [-96.879319, 34.209787], [-96.879076, 34.209916], [-96.878702, 34.210263], [-96.878503, 34.210373], &lt;BR /&gt; [-96.878172,34.210464], [-96.877665, 34.210776], [-96.877267, 34.210922], [-96.877025, 34.21116], &lt;BR /&gt; [-96.877069, 34.211452], [-96.87718, 34.211543], [ -96.877356, 34.211562]]],&lt;BR /&gt; "spatialReference":{"wkid":4326}},&lt;BR /&gt; "symbol":{"color":[0,0,0,64],"outline":{"color":[0,0,0,255],&lt;BR /&gt; "width":1,"type":"esriSLS","style":"esriSLSSolid"},&lt;BR /&gt; "type":"esriSFS","style":"esriSFSSolid"}};&lt;/P&gt;&lt;P&gt;var polygeom = new Polygon(myPolygon);&lt;BR /&gt; //var gra = new Graphic(myPolygon);&lt;BR /&gt; &lt;BR /&gt; var geom = geometryEngine.geodesicArea(polygeom, "acres");&lt;BR /&gt; //console.log(geom);&lt;BR /&gt; array.forEach(geom, function(geometry){&lt;BR /&gt; // map.graphics.add(new Graphic(geometry));&lt;BR /&gt; map.graphics.add(geom);&lt;BR /&gt; });&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on(dom.byId("showPolygon"), "click", showPolygon);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/356203_pastedImage_2.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Jun 2017 13:45:39 GMT</pubDate>
    <dc:creator>KushendraShah2</dc:creator>
    <dc:date>2017-06-08T13:45:39Z</dc:date>
    <item>
      <title>Calculate geodesic area of polygon.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calculate-geodesic-area-of-polygon/m-p/367598#M34091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like to calculate the area of polygon in ACRES. The polygon is created from JSON arrays and is in Geographic coordinate system. I would appreciate for any help or samples. Here is my&amp;nbsp;sample work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;require([&lt;BR /&gt; &lt;BR /&gt; "esri/map",&lt;BR /&gt; "esri/layers/FeatureLayer",&lt;BR /&gt; "esri/geometry/Polygon", "dijit/form/Button",&lt;BR /&gt; "esri/graphic", "esri/geometry/geodesicUtils", "esri/units", "esri/SpatialReference",&lt;BR /&gt; "esri/symbols/SimpleFillSymbol",&lt;BR /&gt; "esri/symbols/SimpleLineSymbol", "esri/Color", "esri/geometry/webMercatorUtils",&lt;BR /&gt; "esri/tasks/ProjectParameters",&lt;BR /&gt; "esri/graphic", "esri/tasks/FeatureSet", "dojo/dom-construct", "dojo/dom", "dojo/on",&lt;BR /&gt; "dojo/domReady!"&lt;BR /&gt; ],&lt;BR /&gt; function(&lt;BR /&gt; Map,&lt;BR /&gt; FeatureLayer,&lt;BR /&gt; Polygon, Button, Graphic, geodesicUtils, Units, SpatialReference,&lt;BR /&gt; SimpleFillSymbol, SimpleLineSymbol, Color, webMercatorUtils, ProjectParameters,&lt;BR /&gt; Graphics, FeatureSet, domConstruct, dom, on, ready&lt;BR /&gt; ) {&lt;/P&gt;&lt;P&gt;var map = new Map("map", {&lt;BR /&gt; basemap: "topo",&lt;BR /&gt; center: [ -96.878361, 34.186651],&lt;BR /&gt; zoom: 14&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; function showPolygon(){&lt;/P&gt;&lt;P&gt;var myPolygon = {"geometry":{"rings":[[&lt;BR /&gt; [-96.880511,34.209403], [-96.880378, 34.20944], [-96.880158, 34.209623], [-96.879584, 34.209696],&lt;BR /&gt; [-96.879319, 34.209787], [-96.879076, 34.209916], [-96.878702, 34.210263], [-96.878503, 34.210373], &lt;BR /&gt; [-96.878172,34.210464], [-96.877665, 34.210776], [-96.877267, 34.210922], [-96.877025, 34.21116], &lt;BR /&gt; [-96.877069, 34.211452], [-96.87718, 34.211543], [ -96.877356, 34.211562]]],&lt;BR /&gt; "spatialReference":{"wkid":4326}},&lt;BR /&gt; "symbol":{"color":[0,0,0,64],"outline":{"color":[0,0,0,255],&lt;BR /&gt; "width":1,"type":"esriSLS","style":"esriSLSSolid"},&lt;BR /&gt; "type":"esriSFS","style":"esriSFSSolid"}};&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; //var gra = new Graphic(myPolygon);&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; //map.graphics.add(gra);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; function projectToWebMercator() {&lt;BR /&gt; var sr3 = new SpatialReference(102725);&lt;BR /&gt; var Geometries = [];&lt;BR /&gt; //var geomarray = arguments[0];&lt;BR /&gt; Geometries.push(esri.geometry.geographicToWebMercator(myPolygon));&lt;BR /&gt; var geom = esri.geometry.geodeiscAreas(Geometries, esri.Units.ACRES);&lt;BR /&gt; &lt;BR /&gt; console.log(geom);&lt;BR /&gt; &lt;BR /&gt; map.graphics.add(geom);&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; on(dom.byId("showPolygon"), "click", showPolygon);&lt;BR /&gt; on(dom.byId("convert"), "click", projectToWebMercator);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; });&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jun 2017 19:28:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calculate-geodesic-area-of-polygon/m-p/367598#M34091</guid>
      <dc:creator>KushendraShah2</dc:creator>
      <dc:date>2017-06-07T19:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate geodesic area of polygon.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calculate-geodesic-area-of-polygon/m-p/367599#M34092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the geometryEngine.geodesicArea method. &amp;nbsp;It takes a geometry (likely a polygon) and a unit (which would be 'acres' for you).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ref:&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jsapi/esri.geometry.geometryengine-amd.html#geodesicarea" title="https://developers.arcgis.com/javascript/3/jsapi/esri.geometry.geometryengine-amd.html#geodesicarea"&gt;esri/geometry/geometryEngine | API Reference | ArcGIS API for JavaScript 3.20&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jun 2017 19:52:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calculate-geodesic-area-of-polygon/m-p/367599#M34092</guid>
      <dc:creator>ThomasSolow</dc:creator>
      <dc:date>2017-06-07T19:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate geodesic area of polygon.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calculate-geodesic-area-of-polygon/m-p/367600#M34093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thomas, thanks for reply. I tried to implement using that method but I got something error that I am not aware of. Here is the snippet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function showPolygon(){&lt;/P&gt;&lt;P&gt;var myPolygon = {"geometry":{"rings":[[&lt;BR /&gt; [-96.880511,34.209403], [-96.880378, 34.20944], [-96.880158, 34.209623], [-96.879584, 34.209696],&lt;BR /&gt; [-96.879319, 34.209787], [-96.879076, 34.209916], [-96.878702, 34.210263], [-96.878503, 34.210373], &lt;BR /&gt; [-96.878172,34.210464], [-96.877665, 34.210776], [-96.877267, 34.210922], [-96.877025, 34.21116], &lt;BR /&gt; [-96.877069, 34.211452], [-96.87718, 34.211543], [ -96.877356, 34.211562]]],&lt;BR /&gt; "spatialReference":{"wkid":4326}},&lt;BR /&gt; "symbol":{"color":[0,0,0,64],"outline":{"color":[0,0,0,255],&lt;BR /&gt; "width":1,"type":"esriSLS","style":"esriSLSSolid"},&lt;BR /&gt; "type":"esriSFS","style":"esriSFSSolid"}};&lt;/P&gt;&lt;P&gt;var polygeom = new Polygon(myPolygon);&lt;BR /&gt; //var gra = new Graphic(myPolygon);&lt;BR /&gt; &lt;BR /&gt; var geom = geometryEngine.geodesicArea(polygeom, "acres");&lt;BR /&gt; //console.log(geom);&lt;BR /&gt; array.forEach(geom, function(geometry){&lt;BR /&gt; // map.graphics.add(new Graphic(geometry));&lt;BR /&gt; map.graphics.add(geom);&lt;BR /&gt; });&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on(dom.byId("showPolygon"), "click", showPolygon);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/356203_pastedImage_2.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jun 2017 13:45:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calculate-geodesic-area-of-polygon/m-p/367600#M34093</guid>
      <dc:creator>KushendraShah2</dc:creator>
      <dc:date>2017-06-08T13:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate geodesic area of polygon.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calculate-geodesic-area-of-polygon/m-p/367601#M34094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would say the issue is probably how you're creating the polygon geometry. &amp;nbsp;It looks to me like you have a graphic JSON, not a polygon JSON, so you could do it like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN class="" style="color: #333333; font-weight: bold;"&gt;var&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt; graphicJSON &lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;{&lt;/SPAN&gt;&lt;SPAN class="" style="color: #dd1144;"&gt;"geometry"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;:{&lt;/SPAN&gt;&lt;SPAN class="" style="color: #dd1144;"&gt;"rings"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;:[[[-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #009999;"&gt;115.3125&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #009999;"&gt;37.96875&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;],[-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #009999;"&gt;111.4453125&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #009999;"&gt;37.96875&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;],&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt;
&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;[-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #009999;"&gt;99.84375&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #009999;"&gt;36.2109375&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;],[-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #009999;"&gt;99.84375&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #009999;"&gt;23.90625&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;],[-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #009999;"&gt;116.015625&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #009999;"&gt;24.609375&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;],&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt;
&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;[-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #009999;"&gt;115.3125&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #009999;"&gt;37.96875&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;]]],&lt;/SPAN&gt;&lt;SPAN class="" style="color: #dd1144;"&gt;"spatialReference"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;:{&lt;/SPAN&gt;&lt;SPAN class="" style="color: #dd1144;"&gt;"wkid"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #009999;"&gt;4326&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;}},&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt;
&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #dd1144;"&gt;"symbol"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;:{&lt;/SPAN&gt;&lt;SPAN class="" style="color: #dd1144;"&gt;"color"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;:[&lt;/SPAN&gt;&lt;SPAN class="" style="color: #009999;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #009999;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #009999;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #009999;"&gt;64&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;],&lt;/SPAN&gt;&lt;SPAN class="" style="color: #dd1144;"&gt;"outline"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;:{&lt;/SPAN&gt;&lt;SPAN class="" style="color: #dd1144;"&gt;"color"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;:[&lt;/SPAN&gt;&lt;SPAN class="" style="color: #009999;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #009999;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #009999;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #009999;"&gt;255&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;],&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt;
&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #dd1144;"&gt;"width"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #009999;"&gt;1&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #dd1144;"&gt;"type"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #dd1144;"&gt;"esriSLS"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #dd1144;"&gt;"style"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #dd1144;"&gt;"esriSLSSolid"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;},&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt;
&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #dd1144;"&gt;"type"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #dd1144;"&gt;"esriSFS"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #dd1144;"&gt;"style"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #dd1144;"&gt;"esriSFSSolid"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;}};&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt;
&lt;/SPAN&gt;&lt;SPAN class="" style="color: #333333; font-weight: bold;"&gt;var&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt; polygonGraphic &lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #333333; font-weight: bold;"&gt;new&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000;"&gt;Graphic&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt;graphicJSON&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;);&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case, you could access the polygon with polygonGraphic.geometry.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:03:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calculate-geodesic-area-of-polygon/m-p/367601#M34094</guid>
      <dc:creator>ThomasSolow</dc:creator>
      <dc:date>2021-12-11T17:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate geodesic area of polygon.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calculate-geodesic-area-of-polygon/m-p/367602#M34095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again Thomas. The error is gone and I can now display the polygon in map but still don't have an idea on getting area. I tried to print area in console but still I am stuck in running API reference. Let me know where I was wrong.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var geometry = new Graphic(myPolygon);&lt;BR /&gt; &lt;BR /&gt; map.graphics.add(geometry);&lt;BR /&gt; &lt;BR /&gt; var geographicGeometries = []; &lt;BR /&gt; &lt;BR /&gt; geographicGeometries.push(geometryEngine.geodesicArea(geometry, "acres"));&lt;BR /&gt; var areas = geographicGeometries;&lt;BR /&gt; &lt;BR /&gt; console.log(areas);&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt; &lt;BR /&gt; dom.byId("result").innerHTML = "The area of the polygon is: " + areas[0] + " acres";&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jun 2017 21:26:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calculate-geodesic-area-of-polygon/m-p/367602#M34095</guid>
      <dc:creator>KushendraShah2</dc:creator>
      <dc:date>2017-06-08T21:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate geodesic area of polygon.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calculate-geodesic-area-of-polygon/m-p/367603#M34096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The geometry is property on the graphic, but it's distinct from the graphic. &amp;nbsp;Basically, a graphic consists of three things: a geometry which describes its shape (in this case a polygon), attributes which are key-value pairs (not important here), and a symbol which decides the color and size of the graphic when it's added to the map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;var graphic = new Graphic(myPolygon);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;map.graphics.add(graphic);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var geographicGeometries = [];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;geographicGeometries.push(geometryEngine.geodesicArea(graphic.geometry, "acres"));&lt;BR /&gt;var areas = geographicGeometries;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;console.log(areas);&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dom.byId("result").innerHTML = "The area of the polygon is: " + areas[0] + " acres";&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jun 2017 22:01:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calculate-geodesic-area-of-polygon/m-p/367603#M34096</guid>
      <dc:creator>ThomasSolow</dc:creator>
      <dc:date>2017-06-08T22:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate geodesic area of polygon.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calculate-geodesic-area-of-polygon/m-p/367604#M34097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thomas I tried with that but just got this error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/356299_pastedImage_2.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jun 2017 22:15:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calculate-geodesic-area-of-polygon/m-p/367604#M34097</guid>
      <dc:creator>KushendraShah2</dc:creator>
      <dc:date>2017-06-08T22:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate geodesic area of polygon.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calculate-geodesic-area-of-polygon/m-p/367605#M34098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's a sample that seems to work for me:&amp;nbsp;&lt;STRONG&gt;&lt;A class="link-titled" href="https://jsbin.com/yuyebon/edit?html,output" title="https://jsbin.com/yuyebon/edit?html,output"&gt;JS Bin - Collaborative JavaScript Debugging&lt;/A&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I also ran the polygon through geometryEngine.simplify because it was returning a negative area (maybe because it has counter clockwise rounding).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jun 2017 22:46:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calculate-geodesic-area-of-polygon/m-p/367605#M34098</guid>
      <dc:creator>ThomasSolow</dc:creator>
      <dc:date>2017-06-08T22:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate geodesic area of polygon.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calculate-geodesic-area-of-polygon/m-p/367606#M34099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad that works now! Thanks Thomas. Appreciated your time and help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jun 2017 13:04:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calculate-geodesic-area-of-polygon/m-p/367606#M34099</guid>
      <dc:creator>KushendraShah2</dc:creator>
      <dc:date>2017-06-09T13:04:39Z</dc:date>
    </item>
  </channel>
</rss>

