<?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 get vertices of polygon? in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-get-vertices-of-polygon/m-p/296975#M7662</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To get the vertices of a polygon, you need to go through the Rings of the polygon where each Ring is a PointCollection and each collection is composed of MapPoints (vertices).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
PointCollection vertices = new PointCollection();
for (int i = 0; i &amp;lt; polygon.Rings.Count; i++)
 foreach (var mp in polygon.Rings&lt;I&gt;)
&amp;nbsp; vertices.Add(mp);
&lt;/I&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To convert this to a polyline geometry, you need to create a Path for every Ring where each Ring and Path contain the same PointCollection.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 14:15:12 GMT</pubDate>
    <dc:creator>JenniferNery</dc:creator>
    <dc:date>2021-12-11T14:15:12Z</dc:date>
    <item>
      <title>how get vertices of polygon?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-get-vertices-of-polygon/m-p/296974#M7661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; how I can getting vertices from polygon?another question how i can convert or get &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;polylines from polygon?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ps:version 9.3 and api 1.2...but i can use 2.1&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Nov 2010 18:58:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-get-vertices-of-polygon/m-p/296974#M7661</guid>
      <dc:creator>StefhanCampos</dc:creator>
      <dc:date>2010-11-29T18:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: how get vertices of polygon?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-get-vertices-of-polygon/m-p/296975#M7662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To get the vertices of a polygon, you need to go through the Rings of the polygon where each Ring is a PointCollection and each collection is composed of MapPoints (vertices).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
PointCollection vertices = new PointCollection();
for (int i = 0; i &amp;lt; polygon.Rings.Count; i++)
 foreach (var mp in polygon.Rings&lt;I&gt;)
&amp;nbsp; vertices.Add(mp);
&lt;/I&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To convert this to a polyline geometry, you need to create a Path for every Ring where each Ring and Path contain the same PointCollection.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:15:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-get-vertices-of-polygon/m-p/296975#M7662</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2021-12-11T14:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: how get vertices of polygon?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-get-vertices-of-polygon/m-p/296976#M7663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To convert polygon to polyline, just move the rings over to the paths:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; 
Polyline line = new Polyline();
foreach(var ring in myPolygon.Rings)
&amp;nbsp;&amp;nbsp;&amp;nbsp; line.Paths.Add(ring);
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:15:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-get-vertices-of-polygon/m-p/296976#M7663</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2021-12-11T14:15:15Z</dc:date>
    </item>
  </channel>
</rss>

