<?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: Get Geographic Coordinates From Polygon Rings in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-geographic-coordinates-from-polygon-rings/m-p/135100#M12560</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Essaddek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; The rings property is a&amp;nbsp;two dimensional array means it is an array of arrays of coordinates. So you have to loop through the rings array to get the polygons rings and then loop over the ring vertex coordinates. You can use the getPoint method to get a specific point from a specific rings of a Polygon.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jsapi/polygon-amd.html#getpoint" title="https://developers.arcgis.com/javascript/3/jsapi/polygon-amd.html#getpoint"&gt;Polygon | API Reference | ArcGIS API for JavaScript 3.26&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Nov 2018 01:27:21 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2018-11-19T01:27:21Z</dc:date>
    <item>
      <title>Get Geographic Coordinates From Polygon Rings</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-geographic-coordinates-from-polygon-rings/m-p/135099#M12559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I would like to get geographic coordinates from a drawn polygon using the SketchViiewModel. But actually the api gets only ring.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;switch (sketchViewModel.graphic.symbol.type)&lt;BR /&gt; {&lt;BR /&gt; case "symple-marker": {&lt;BR /&gt; $("#Longitude").val(event.geometry.longitude);&lt;BR /&gt; $("#Latitude").val(event.geometry.latitude);&lt;BR /&gt; break;&lt;BR /&gt; }&lt;BR /&gt; case "polygon": {&lt;/P&gt;&lt;P&gt;event.geometry.rings; // ??&lt;/P&gt;&lt;P&gt;break;&lt;BR /&gt; }&lt;BR /&gt; }&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Is there anyway to do it?&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Nov 2018 17:28:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-geographic-coordinates-from-polygon-rings/m-p/135099#M12559</guid>
      <dc:creator>EssaddekMohammed</dc:creator>
      <dc:date>2018-11-18T17:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: Get Geographic Coordinates From Polygon Rings</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-geographic-coordinates-from-polygon-rings/m-p/135100#M12560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Essaddek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; The rings property is a&amp;nbsp;two dimensional array means it is an array of arrays of coordinates. So you have to loop through the rings array to get the polygons rings and then loop over the ring vertex coordinates. You can use the getPoint method to get a specific point from a specific rings of a Polygon.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jsapi/polygon-amd.html#getpoint" title="https://developers.arcgis.com/javascript/3/jsapi/polygon-amd.html#getpoint"&gt;Polygon | API Reference | ArcGIS API for JavaScript 3.26&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2018 01:27:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-geographic-coordinates-from-polygon-rings/m-p/135100#M12560</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-11-19T01:27:21Z</dc:date>
    </item>
  </channel>
</rss>

