<?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>idea Add flip direction method to Polyline class in Python Ideas</title>
    <link>https://community.esri.com/t5/python-ideas/add-flip-direction-method-to-polyline-class/idi-p/1237550</link>
    <description>&lt;P&gt;It would be very useful to add to the Polyline geometry class in arcpy a method that flips the direction of vertices. This could be done in situ or the method generates a new Polyline geometry (my preferred option). ArcObjects allows you to call such a &lt;A href="https://desktop.arcgis.com/en/arcobjects/latest/net/webframe.htm#ICurve_ReverseOrientation.htm" target="_self"&gt;method&lt;/A&gt;. Currently one has to program this logic which is tiresome when it seems such an obvious thing that one might want to do to a Polyline, reverse its direction.&lt;/P&gt;</description>
    <pubDate>Sat, 03 Dec 2022 16:57:42 GMT</pubDate>
    <dc:creator>DuncanHornby</dc:creator>
    <dc:date>2022-12-03T16:57:42Z</dc:date>
    <item>
      <title>Add flip direction method to Polyline class</title>
      <link>https://community.esri.com/t5/python-ideas/add-flip-direction-method-to-polyline-class/idi-p/1237550</link>
      <description>&lt;P&gt;It would be very useful to add to the Polyline geometry class in arcpy a method that flips the direction of vertices. This could be done in situ or the method generates a new Polyline geometry (my preferred option). ArcObjects allows you to call such a &lt;A href="https://desktop.arcgis.com/en/arcobjects/latest/net/webframe.htm#ICurve_ReverseOrientation.htm" target="_self"&gt;method&lt;/A&gt;. Currently one has to program this logic which is tiresome when it seems such an obvious thing that one might want to do to a Polyline, reverse its direction.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Dec 2022 16:57:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-ideas/add-flip-direction-method-to-polyline-class/idi-p/1237550</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2022-12-03T16:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: Add flip direction method to Polyline class</title>
      <link>https://community.esri.com/t5/python-ideas/add-flip-direction-method-to-polyline-class/idc-p/1237940#M161</link>
      <description>&lt;P&gt;I believe it already exists. I don't know if this is what you are looking for but here is something akin to it.&lt;/P&gt;&lt;P&gt;&lt;A title="Flip Line Using Python" href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/editing/flip-line.htm" target="_blank" rel="noopener"&gt;Flip Line via Python&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 19:33:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-ideas/add-flip-direction-method-to-polyline-class/idc-p/1237940#M161</guid>
      <dc:creator>RPGIS</dc:creator>
      <dc:date>2022-12-05T19:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: Add flip direction method to Polyline class</title>
      <link>https://community.esri.com/t5/python-ideas/add-flip-direction-method-to-polyline-class/idc-p/1238174#M162</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/22623"&gt;@RPGIS&lt;/a&gt;&amp;nbsp;, I am aware of this geo-processing tool, that requires &lt;U&gt;at least a standard license&lt;/U&gt;. I'm suggesting that the list of methods on the geometry polyline class be expanded to include a "flip" method. This would allow for cleaner easier coding and would compliment the long list of existing methods and frankly I'm surprised it does not exist already as reversing the direction of a polyline is a very common task. This should not be a task only accessible to higher license level tools.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2022 11:42:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-ideas/add-flip-direction-method-to-polyline-class/idc-p/1238174#M162</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2022-12-06T11:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Add flip direction method to Polyline class</title>
      <link>https://community.esri.com/t5/python-ideas/add-flip-direction-method-to-polyline-class/idc-p/1238193#M163</link>
      <description>&lt;P&gt;I've ran across something similar, but the way I've handled it was to simply convert the polyline into an array of points and then use the reverse method to basically flip the line and then recreate the original polyline.&lt;/P&gt;&lt;P&gt;That's the only method I can think of that will do that using the geometries.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2022 12:49:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-ideas/add-flip-direction-method-to-polyline-class/idc-p/1238193#M163</guid>
      <dc:creator>RPGIS</dc:creator>
      <dc:date>2022-12-06T12:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: Add flip direction method to Polyline class</title>
      <link>https://community.esri.com/t5/python-ideas/add-flip-direction-method-to-polyline-class/idc-p/1238200#M164</link>
      <description>&lt;P&gt;That was my solution, but it just seems like overkill to me, having to create new arrays, inserting points in reverse then rebuilding a new polyline. Exposing it as a method of a polyline would make for simpler and cleaner code. It would probably be more efficient too as I understand that arcpy is often a wrapper to some uber fast c++ code.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2022 13:09:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-ideas/add-flip-direction-method-to-polyline-class/idc-p/1238200#M164</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2022-12-06T13:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: Add flip direction method to Polyline class</title>
      <link>https://community.esri.com/t5/python-ideas/add-flip-direction-method-to-polyline-class/idc-p/1238383#M165</link>
      <description>&lt;P&gt;That would be simpler,&amp;nbsp; however you could also do a couple of things to make it easier:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Write a function that reverses the polyline direction&lt;/LI&gt;&lt;LI&gt;Create a script and write it a class to then be called by any script as a module that can be imported into any script&lt;/LI&gt;&lt;LI&gt;Make a copy of the python library and modify the geometries portion of the newly copied library to include the line reversal&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Aside from those suggestions you would have to see if Esri would be willing to implement your idea.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2022 17:30:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-ideas/add-flip-direction-method-to-polyline-class/idc-p/1238383#M165</guid>
      <dc:creator>RPGIS</dc:creator>
      <dc:date>2022-12-06T17:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: Add flip direction method to Polyline class - Status changed to: In Product Plan</title>
      <link>https://community.esri.com/t5/python-ideas/add-flip-direction-method-to-polyline-class/idc-p/1522806#M350</link>
      <description>&lt;P&gt;&lt;SPAN&gt;We're working on this!&amp;nbsp; This status does not guarantee that the functionality will be in the next release, but development work has begun. Release cycles vary by product so make sure to check&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;the&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://support.esri.com/en/other-resources/product-life-cycle" target="_blank" rel="noopener nofollow noreferrer"&gt;&lt;SPAN&gt;product&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;life cycle information&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;to get an idea of when to expect the next release.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2024 11:44:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-ideas/add-flip-direction-method-to-polyline-class/idc-p/1522806#M350</guid>
      <dc:creator>HannesZiegler</dc:creator>
      <dc:date>2024-08-16T11:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: Add flip direction method to Polyline class - Status changed to: Implemented</title>
      <link>https://community.esri.com/t5/python-ideas/add-flip-direction-method-to-polyline-class/idc-p/1556833#M383</link>
      <description>&lt;P&gt;This idea has been implemented in ArcGIS Pro 3.4, please see&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/get-started/whats-new-in-arcgis-pro.htm#ESRI_SECTION1_AB3F982B6A174B74AFF373A90D77CA20" target="_self" rel="nofollow noopener noreferrer"&gt;the Python section of the What's New in ArcGIS Pro 3.4 topic&lt;/A&gt;&amp;nbsp;and scroll to ArcPy.&lt;/P&gt;
&lt;UL id="UL_B47FE8752BC04909ADBE1CAEB64A61FA"&gt;
&lt;LI id="LI_3695629C856749E596C0A26E58034882"&gt;The&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="usertext"&gt;&lt;A class="xref xref" href="https://pro.arcgis.com/en/pro-app/3.4/arcpy/classes/polyline.htm" target="_blank"&gt;Polyline&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;object has a&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="usertext"&gt;reverseOrientation&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;method to reverse the direction of line features.&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Fri, 08 Nov 2024 15:55:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-ideas/add-flip-direction-method-to-polyline-class/idc-p/1556833#M383</guid>
      <dc:creator>HannesZiegler</dc:creator>
      <dc:date>2024-11-08T15:55:46Z</dc:date>
    </item>
  </channel>
</rss>

