<?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: How to get coordinates of each vertex of a polygon? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-coordinates-of-each-vertex-of-a-polygon/m-p/97969#M8972</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use the suggestion above I get the following error saying that getLatitude and getLongitude are not functions.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/498283_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Jun 2020 06:58:23 GMT</pubDate>
    <dc:creator>SiyabongaKubeka</dc:creator>
    <dc:date>2020-06-30T06:58:23Z</dc:date>
    <item>
      <title>How to get coordinates of each vertex of a polygon?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-coordinates-of-each-vertex-of-a-polygon/m-p/97965#M8968</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;&lt;/P&gt;&lt;P&gt;I am trying to get the coordinates of each vertex and separate they by putting all the latitudes on one field and all the longitudes on one field. This is who I tried to do it but it is not dong what I want it to do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for (var i = 0; i &amp;lt; gra.geometry.rings.length; i++){&lt;BR /&gt; for (var p = 0; p &amp;lt; gra.geometry.rings&lt;I&gt;.length; p++){&lt;BR /&gt; crmLatitude = String(gra.geometry.rings&lt;I&gt;);&lt;BR /&gt; crmLongitude = String(gra.geometry.rings&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;); &lt;BR /&gt; var LatLon = String(gra.geometry.rings&lt;I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;); &lt;BR /&gt; console.log(LatLon);&lt;BR /&gt; latlon = LatLon; &lt;BR /&gt; &lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do it? Please assist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Siyabonga Kubeka&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2020 06:20:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-coordinates-of-each-vertex-of-a-polygon/m-p/97965#M8968</guid>
      <dc:creator>SiyabongaKubeka</dc:creator>
      <dc:date>2020-06-24T06:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to get coordinates of each vertex of a polygon?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-coordinates-of-each-vertex-of-a-polygon/m-p/97966#M8969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;crmLatitude &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;String&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;gra&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;geometry&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;rings&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;i&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;p&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;getLatitude&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
crmLongitude &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;String&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;gra&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;geometry&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;rings&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;i&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;p&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;getLongittude&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:07:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-coordinates-of-each-vertex-of-a-polygon/m-p/97966#M8969</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T06:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to get coordinates of each vertex of a polygon?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-coordinates-of-each-vertex-of-a-polygon/m-p/97967#M8970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much. One last question, is it possible to use those stored coordinates to recreate the polygon? The idea is to save a map and the polygon, so that it can be opened at another stage. If there is a way, how do I do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Siyabonga Kubeka&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2020 06:25:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-coordinates-of-each-vertex-of-a-polygon/m-p/97967#M8970</guid>
      <dc:creator>SiyabongaKubeka</dc:creator>
      <dc:date>2020-06-25T06:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to get coordinates of each vertex of a polygon?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-coordinates-of-each-vertex-of-a-polygon/m-p/97968#M8971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="link-bare" href="https://developers.arcgis.com/javascript/3/jsapi/polygon-amd.html#polygon3" title="https://developers.arcgis.com/javascript/3/jsapi/polygon-amd.html#polygon3"&gt;https://developers.arcgis.com/javascript/3/jsapi/polygon-amd.html#polygon3&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Build the polygon using the coordinates saved.&lt;/P&gt;&lt;PRE class="" style="color: #4d4d4d; background: #fafafa; border: 2px solid #dddddd; margin: 0.5em 0.5em 0.5em 0px; padding: 0.5em 0px 0.5em 0.5em;"&gt;&lt;SPAN class="" style="color: #333333; font-weight: bold;"&gt;var&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt; singleRingPolygon &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;Polygon&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;([[&lt;/SPAN&gt;&lt;SPAN class="" style="color: #009999;"&gt;50&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: #009999;"&gt;0&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: #009999;"&gt;150&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: #009999;"&gt;20&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: #009999;"&gt;150&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: #009999;"&gt;20&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: #009999;"&gt;50&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;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2020 12:53:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-coordinates-of-each-vertex-of-a-polygon/m-p/97968#M8971</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2020-06-25T12:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to get coordinates of each vertex of a polygon?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-coordinates-of-each-vertex-of-a-polygon/m-p/97969#M8972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use the suggestion above I get the following error saying that getLatitude and getLongitude are not functions.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/498283_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2020 06:58:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-coordinates-of-each-vertex-of-a-polygon/m-p/97969#M8972</guid>
      <dc:creator>SiyabongaKubeka</dc:creator>
      <dc:date>2020-06-30T06:58:23Z</dc:date>
    </item>
  </channel>
</rss>

