<?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 convert points to polyline to polygon to calculate area in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/convert-points-to-polyline-to-polygon-to-calculate/m-p/310953#M3612</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All, good morning!&lt;/P&gt;&lt;P&gt;I have a set of points (lat and lon) that shows a vehicle route/path, I want to get the area covered by that vehicle.&lt;/P&gt;&lt;P&gt;What would be the best approach to get this done?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cycle through each point to build a polygon, joining first and last point?&lt;/P&gt;&lt;P&gt;How do I build a polygon that has all points as a perimeter?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Sep 2015 16:15:49 GMT</pubDate>
    <dc:creator>PeterBennett1</dc:creator>
    <dc:date>2015-09-08T16:15:49Z</dc:date>
    <item>
      <title>convert points to polyline to polygon to calculate area</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/convert-points-to-polyline-to-polygon-to-calculate/m-p/310953#M3612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All, good morning!&lt;/P&gt;&lt;P&gt;I have a set of points (lat and lon) that shows a vehicle route/path, I want to get the area covered by that vehicle.&lt;/P&gt;&lt;P&gt;What would be the best approach to get this done?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cycle through each point to build a polygon, joining first and last point?&lt;/P&gt;&lt;P&gt;How do I build a polygon that has all points as a perimeter?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2015 16:15:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/convert-points-to-polyline-to-polygon-to-calculate/m-p/310953#M3612</guid>
      <dc:creator>PeterBennett1</dc:creator>
      <dc:date>2015-09-08T16:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: convert points to polyline to polygon to calculate area</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/convert-points-to-polyline-to-polygon-to-calculate/m-p/310954#M3613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;don't forget that you will also have to project your data to something other than a geographic coordinate system or your areas will be meaningless.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2015 17:13:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/convert-points-to-polyline-to-polygon-to-calculate/m-p/310954#M3613</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-09-08T17:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: convert points to polyline to polygon to calculate area</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/convert-points-to-polyline-to-polygon-to-calculate/m-p/310955#M3614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Dan not if you use the geodesic area calculations provided by the geometry engine &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; In that case it's actually better - I'm a big believer in never doing area calculations in a projection but keeping it all in spherical coordinates and using ellipsoidal calculations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But to answer the question: You can create a polygon from a set of points, and you can get that set of points from the polyline path. Ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var myPolygon = new Polygon(myPolyline.Parts[0], myPolyline.SpatialReference);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively use the PolygonBuilder to add vertices one by one in a loop, and call ToGeometry() when you're done.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2015 19:25:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/convert-points-to-polyline-to-polygon-to-calculate/m-p/310955#M3614</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2015-09-08T19:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: convert points to polyline to polygon to calculate area</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/convert-points-to-polyline-to-polygon-to-calculate/m-p/310956#M3615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know...just trying to head off the..."my areas are wrong" comments...geodesic, I can guarantee you, is not widely understood by a significant number of people using GIS...some are just now getting comfortable with projection...although Define Projection and Project and ArcMap Project do present some conceptual difficulties given the overuse of the term...but that is for another project &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2015 20:24:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/convert-points-to-polyline-to-polygon-to-calculate/m-p/310956#M3615</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-09-08T20:24:05Z</dc:date>
    </item>
  </channel>
</rss>

