<?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: Create a polygon or polyline from points that are not ordered sequentially in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/create-a-polygon-or-polyline-from-points-that-are/m-p/1286597#M67594</link>
    <description>&lt;P&gt;Thanks Dan. The lower image is the full extent, then upper image is a zoomed portion showing the aligned points I need to make a polygon from. All of which have mixed up objectids. Do you have new links to the Points toolbox? They don't seem to be working.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Links.PNG" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/70074iF0DC76518A37DF46/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Links.PNG" alt="Links.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;p.s. Found it! Thanks.&amp;nbsp;&lt;A href="https://github.com/Dan-Patterson/Tools_for_ArcGIS_Pro" target="_blank" rel="noopener"&gt;GitHub - Dan-Patterson/Tools_for_ArcGIS_Pro: Python Code Samples and toolboxes for use in ArcGIS Pro.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/python-blog/point-tools-for-pro/ba-p/904043" target="_blank" rel="noopener"&gt;Point Tools for Pro - Esri Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Update:&lt;/P&gt;&lt;P&gt;MST is nearly there but with a couple of imperfections.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mst2.PNG" style="width: 150px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/70092i4276C1CBACF7FA14/image-size/small?v=v2&amp;amp;px=200" role="button" title="mst2.PNG" alt="mst2.PNG" /&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mst.PNG" style="width: 175px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/70093i86E5139F7ED29DA4/image-size/small?v=v2&amp;amp;px=200" role="button" title="mst.PNG" alt="mst.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Concave hull works in one place where MST doesn't but overall MST is better. Getting there...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ch.PNG" style="width: 177px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/70094i2AD71D7E00FB19BB/image-size/small?v=v2&amp;amp;px=200" role="button" title="ch.PNG" alt="ch.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 08 May 2023 09:54:22 GMT</pubDate>
    <dc:creator>MattHowe</dc:creator>
    <dc:date>2023-05-08T09:54:22Z</dc:date>
    <item>
      <title>Create a polygon or polyline from points that are not ordered sequentially</title>
      <link>https://community.esri.com/t5/python-questions/create-a-polygon-or-polyline-from-points-that-are/m-p/1286562#M67591</link>
      <description>&lt;P&gt;I have a number of points that are positioned representing a polygon. I need to convert the points to a polygon or line but the features are not sequential and the OIDs are mixed up. Using Python, how can I create a polygon or line from these points, essentially reordering them so they are sequential in a e.g. clockwise direction? Sort doesn't do the job and calculating the bearing to a mean position of all points won't work for concave or complex polygons.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="points2.PNG" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/70063i6EEE4026D02C5869/image-size/medium?v=v2&amp;amp;px=400" role="button" title="points2.PNG" alt="points2.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="points1.PNG" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/70062i50E47E6F3C71BB9B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="points1.PNG" alt="points1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 07 May 2023 20:34:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-a-polygon-or-polyline-from-points-that-are/m-p/1286562#M67591</guid>
      <dc:creator>MattHowe</dc:creator>
      <dc:date>2023-05-07T20:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: Create a polygon or polyline from points that are not ordered sequentially</title>
      <link>https://community.esri.com/t5/python-questions/create-a-polygon-or-polyline-from-points-that-are/m-p/1286577#M67593</link>
      <description>&lt;P&gt;is the lower portion of the image supposed to be what the upper part represents?&amp;nbsp; The extents don't match so you might want to share a sample of your data and a bit of an explanation of it.&lt;/P&gt;&lt;P&gt;Concave Hulls, of which there are several code examples, can be used to generate poly* bounds from point coordinates, regardless of id values&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/python-blog/concave-hulls-the-elusive-container/ba-p/902545" target="_blank"&gt;Concave Hulls ... the elusive container - Esri Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/python-blog/point-tools/ba-p/902695" target="_blank"&gt;Point Tools .... - Esri Community&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 00:46:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-a-polygon-or-polyline-from-points-that-are/m-p/1286577#M67593</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2023-05-08T00:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: Create a polygon or polyline from points that are not ordered sequentially</title>
      <link>https://community.esri.com/t5/python-questions/create-a-polygon-or-polyline-from-points-that-are/m-p/1286597#M67594</link>
      <description>&lt;P&gt;Thanks Dan. The lower image is the full extent, then upper image is a zoomed portion showing the aligned points I need to make a polygon from. All of which have mixed up objectids. Do you have new links to the Points toolbox? They don't seem to be working.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Links.PNG" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/70074iF0DC76518A37DF46/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Links.PNG" alt="Links.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;p.s. Found it! Thanks.&amp;nbsp;&lt;A href="https://github.com/Dan-Patterson/Tools_for_ArcGIS_Pro" target="_blank" rel="noopener"&gt;GitHub - Dan-Patterson/Tools_for_ArcGIS_Pro: Python Code Samples and toolboxes for use in ArcGIS Pro.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/python-blog/point-tools-for-pro/ba-p/904043" target="_blank" rel="noopener"&gt;Point Tools for Pro - Esri Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Update:&lt;/P&gt;&lt;P&gt;MST is nearly there but with a couple of imperfections.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mst2.PNG" style="width: 150px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/70092i4276C1CBACF7FA14/image-size/small?v=v2&amp;amp;px=200" role="button" title="mst2.PNG" alt="mst2.PNG" /&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mst.PNG" style="width: 175px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/70093i86E5139F7ED29DA4/image-size/small?v=v2&amp;amp;px=200" role="button" title="mst.PNG" alt="mst.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Concave hull works in one place where MST doesn't but overall MST is better. Getting there...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ch.PNG" style="width: 177px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/70094i2AD71D7E00FB19BB/image-size/small?v=v2&amp;amp;px=200" role="button" title="ch.PNG" alt="ch.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 09:54:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-a-polygon-or-polyline-from-points-that-are/m-p/1286597#M67594</guid>
      <dc:creator>MattHowe</dc:creator>
      <dc:date>2023-05-08T09:54:22Z</dc:date>
    </item>
  </channel>
</rss>

