<?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 Delete all non-end point vertices in a line in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/delete-all-non-end-point-vertices-in-a-line/m-p/43143#M2397</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm looking for a simple way to delete all of the "interior" (non endpoint) vertices in a line. It can't be a GP tool that writes a new output, I need to modify the existing features. Generalize wont work because the data is in a geometric network that I cannot delete and recreate. Ideally I could select multiple lines and have them processed with a single button click. Is there anything out there that will do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Nov 2016 20:14:00 GMT</pubDate>
    <dc:creator>RobBlash</dc:creator>
    <dc:date>2016-11-28T20:14:00Z</dc:date>
    <item>
      <title>Delete all non-end point vertices in a line</title>
      <link>https://community.esri.com/t5/data-management-questions/delete-all-non-end-point-vertices-in-a-line/m-p/43143#M2397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm looking for a simple way to delete all of the "interior" (non endpoint) vertices in a line. It can't be a GP tool that writes a new output, I need to modify the existing features. Generalize wont work because the data is in a geometric network that I cannot delete and recreate. Ideally I could select multiple lines and have them processed with a single button click. Is there anything out there that will do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2016 20:14:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/delete-all-non-end-point-vertices-in-a-line/m-p/43143#M2397</guid>
      <dc:creator>RobBlash</dc:creator>
      <dc:date>2016-11-28T20:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: Delete all non-end point vertices in a line</title>
      <link>https://community.esri.com/t5/data-management-questions/delete-all-non-end-point-vertices-in-a-line/m-p/43144#M2398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You do realize that is you delete all the vertices that you will have a straight line between the two end points, correct?&lt;/P&gt;&lt;P&gt;If you are editing &lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.3/manage-data/editing-existing-features/deleting-a-vertex.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/manage-data/editing-existing-features/deleting-a-vertex.htm"&gt;Deleting a vertex—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&amp;nbsp; but since you are using a network, maybe this will help&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.3/guide-books/extensions/schematics/configuring-the-network-dataset-builder.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/guide-books/extensions/schematics/configuring-the-network-dataset-builder.htm"&gt;Configuring the Network Dataset builder—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do not use networks myself, but that looks like it will help remove some vertices without compromising the network itself.&amp;nbsp; there are also several other links available from that landing page that might be of help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2016 20:23:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/delete-all-non-end-point-vertices-in-a-line/m-p/43144#M2398</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2016-11-28T20:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: Delete all non-end point vertices in a line</title>
      <link>https://community.esri.com/t5/data-management-questions/delete-all-non-end-point-vertices-in-a-line/m-p/43145#M2399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yup a straight line is exactly what I want. This is for a water utility when a bunch of service connections are snapped to a line. If you move the line endpoints you wind up with a funky looking water line, unless you manually adjust all of the vertices where the services are snapped to the line. If you delete all of the middle vertices the geometric network retains the service snapping while giving you a nice straight line. I just need to figure out hot to do it efficiently. Delete vertices takes too long when there are thousands of features.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2016 20:32:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/delete-all-non-end-point-vertices-in-a-line/m-p/43145#M2399</guid>
      <dc:creator>RobBlash</dc:creator>
      <dc:date>2016-11-28T20:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: Delete all non-end point vertices in a line</title>
      <link>https://community.esri.com/t5/data-management-questions/delete-all-non-end-point-vertices-in-a-line/m-p/43146#M2400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hopefully this clears it up more&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/272562_VertexScreenShot.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2016 20:39:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/delete-all-non-end-point-vertices-in-a-line/m-p/43146#M2400</guid>
      <dc:creator>RobBlash</dc:creator>
      <dc:date>2016-11-28T20:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: Delete all non-end point vertices in a line</title>
      <link>https://community.esri.com/t5/data-management-questions/delete-all-non-end-point-vertices-in-a-line/m-p/43147#M2401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can get to the geometry and grab the first and last points using python&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-classes/geometry.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-classes/geometry.htm"&gt;Geometry—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but again, since I do not work with networks, I'm not sure how this would effect your original data (so always test on a copy).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.3/tools/cartography-toolbox/how-simplify-line-works.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/tools/cartography-toolbox/how-simplify-line-works.htm"&gt;How Simplify Line works—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&amp;nbsp; might be another option.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2016 20:54:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/delete-all-non-end-point-vertices-in-a-line/m-p/43147#M2401</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2016-11-28T20:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: Delete all non-end point vertices in a line</title>
      <link>https://community.esri.com/t5/data-management-questions/delete-all-non-end-point-vertices-in-a-line/m-p/43148#M2402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the suggestions. My python skills are not ready to quickly tackle this issue. If I had 40 hours to play with I'm sure I could make it happen, but that's not the case for this one. Thanks again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anyone else has suggestions please let me know. ET GeoTools has a Generalize tool that works about 60% of the time but that still also requires hitting individual features.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2016 12:16:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/delete-all-non-end-point-vertices-in-a-line/m-p/43148#M2402</guid>
      <dc:creator>RobBlash</dc:creator>
      <dc:date>2016-11-29T12:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: Delete all non-end point vertices in a line</title>
      <link>https://community.esri.com/t5/data-management-questions/delete-all-non-end-point-vertices-in-a-line/m-p/43149#M2403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's one more effort to help.&lt;/P&gt;&lt;P&gt;Since you can't create a new network you may not be able to get away without some manual work, but looking at the network tools avaiable, have you looked at &lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.3/tools/network-analyst-toolbox/update-by-geometry.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/tools/network-analyst-toolbox/update-by-geometry.htm"&gt;Update by Geometry—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Updates all the edge references in the turn feature class using the geometry of the turn features. This tool is useful when the IDs listed for the turn can no longer find the edges participating in the turn due to edits to the underlying edges&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I have no idea whether this will work or not (again, I don't use networks), but reading this I'm thinking if you can get a layer of just the end points, then maybe you can use this to modify the lines.&amp;nbsp; (again, test on a copy).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are many suggestions for getting a new layer of jut the end points.&amp;nbsp;&amp;nbsp; Have you done a basic browser search on something like "arcgis find endpoints" or "arcgis find nodes" ?&amp;nbsp; Sometimes that pops up ArcGIS help or geonet, but also Stackexchange.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://gis.stackexchange.com/questions/146270/how-to-retrieve-start-and-end-points-for-each-line-in-line-shapefile" title="http://gis.stackexchange.com/questions/146270/how-to-retrieve-start-and-end-points-for-each-line-in-line-shapefile"&gt;qgis - How to retrieve start and end points for each line in line shapefile? - Geographic Information Systems Stack Exch…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;has some decent options, including the first suggestion by &lt;A href="https://community.esri.com/migrated-users/4811"&gt;Richard Fairhurst&lt;/A&gt;‌&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll back off this thread now....hopefully someone with Network experience will jump in.&amp;nbsp; I'll tag&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/community/gis/analysis/network-analyst?sr=search&amp;amp;searchId=4141e295-4e55-491a-bc4d-b5c24f58c466&amp;amp;searchIndex=3"&gt;https://community.esri.com/community/gis/analysis/network-analyst?sr=search&amp;amp;searchId=4141e295-4e55-491a-bc4d-b5c24f58c466&amp;amp;searchIndex=3&lt;/A&gt;‌&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2016 16:40:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/delete-all-non-end-point-vertices-in-a-line/m-p/43149#M2403</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2016-11-29T16:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: Delete all non-end point vertices in a line</title>
      <link>https://community.esri.com/t5/data-management-questions/delete-all-non-end-point-vertices-in-a-line/m-p/43150#M2404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As an update for anyone interested, I found that the ET GeoTools generalize will work on a line in a geometric network. While it still requires processing individual lines one at a time it is a better solution than manually deleting vertices.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2016 14:20:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/delete-all-non-end-point-vertices-in-a-line/m-p/43150#M2404</guid>
      <dc:creator>RobBlash</dc:creator>
      <dc:date>2016-12-16T14:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: Delete all non-end point vertices in a line</title>
      <link>https://community.esri.com/t5/data-management-questions/delete-all-non-end-point-vertices-in-a-line/m-p/43151#M2405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure if this will work when the layer is part of a network, but below is an example of how a &lt;SPAN style="font-family: courier new,courier,monospace;"&gt;MULTILINESTRING &lt;/SPAN&gt;can be collapsed to just the endpoints of the individual &lt;SPAN style="font-family: courier new,courier,monospace;"&gt;LINESTRINGS&lt;/SPAN&gt;.&amp;nbsp; The code will work against a single-part &lt;SPAN style="font-family: courier new,courier,monospace;"&gt;MULTILINESTRING&lt;/SPAN&gt; too.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="285026" alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/285026_multilinestring_endpoint_example_a.png" style="width: 465px; height: 332px;" /&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; polyline &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;FromWKT&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'MULTILINESTRING((0 0, 5 0, 7 0, 7 1, 9 1, 9 3, 9 5),(3 2, 5 2, 6 2, 8 5))'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; polyline&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;WKT
u&lt;SPAN class="string token"&gt;'MULTILINESTRING ((0 0, 5 0, 7 0, 7 1, 9 1, 9 3, 9 5), (3 2, 5 2, 6 2, 8 5))'&lt;/SPAN&gt;
&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; arr &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Array&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; line &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; polyline&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;getPart&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="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;add&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Array&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;line&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; line&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&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="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; polyline &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Polyline&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;arr&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; polyline&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;WKT
u&lt;SPAN class="string token"&gt;'MULTILINESTRING ((0 0, 9 5), (3 2, 8 5))'&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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;IMG __jive_id="285029" alt="" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/285029_multilinestring_endpoint_example_b.png" style="width: 465px; height: 332px;" /&gt;&lt;/P&gt;&lt;P&gt;The following code could be wrapped in an &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-data-access/what-is-the-data-access-module-.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;&lt;SPAN style="color: #000080; text-decoration: underline;"&gt;ArcPy Data Access&lt;/SPAN&gt;&lt;/A&gt; cursor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:39:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/delete-all-non-end-point-vertices-in-a-line/m-p/43151#M2405</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2021-12-10T21:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: Delete all non-end point vertices in a line</title>
      <link>https://community.esri.com/t5/data-management-questions/delete-all-non-end-point-vertices-in-a-line/m-p/43152#M2406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The following Python code would accomplish what you're after:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy

fc &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;mapping&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Layer&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'C:/Temp/Temp.gdb/myFc'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;with&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;da&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;UpdateCursor&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fc&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"SHAPE@"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; cursor&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; row &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; cursor&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;#loop through parts&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; part &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; row&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; count &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;# loop through verticies&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; pnt &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; part&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; count &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; count &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; count &lt;SPAN class="operator token"&gt;&amp;gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;3&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arr &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; row&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;getPart&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;remove&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; newLine &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Polyline&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;arr&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; row&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; newLine
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cursor&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;updateRow&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;row&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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reference:&amp;nbsp;&lt;A class="link-titled" href="https://gis.stackexchange.com/questions/226982/delete-middle-vertex-of-multiple-3-vertex-polylines/288563#288563" title="https://gis.stackexchange.com/questions/226982/delete-middle-vertex-of-multiple-3-vertex-polylines/288563#288563" rel="nofollow noopener noreferrer" target="_blank"&gt;arcpy - Delete middle vertex of multiple 3-vertex polylines - Geographic Information Systems Stack Exchange&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;updatecursor‌arcpy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:39:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/delete-all-non-end-point-vertices-in-a-line/m-p/43152#M2406</guid>
      <dc:creator>MatthewComartin</dc:creator>
      <dc:date>2021-12-10T21:39:28Z</dc:date>
    </item>
  </channel>
</rss>

