<?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 to delete vertices from a line when inside a selecting polygon in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-delete-vertices-from-a-line-when-inside-a/m-p/1632580#M97187</link>
    <description>&lt;P&gt;My use case was a little different, but this general workflow worked like a charm! I have a water distribution network where lines cross each other, but aren't actually connected. So I needed to delete all of the vertices where lines intersected where there wasn't actually a point feature connecting them.&lt;/P&gt;&lt;P&gt;So my workflow was basically&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Feature Vertices to Points (Start and Endpoints)&lt;/LI&gt;&lt;LI&gt;Feature Vertices to Points (All vertices)&lt;/LI&gt;&lt;LI&gt;Collect Events on the All vertices layer (counts how many vertices are stacked on each other)&lt;/LI&gt;&lt;LI&gt;Delete features in the resulting Collect Events Layer where Count = 1&lt;/LI&gt;&lt;LI&gt;Select By Location with the Collect Events Layer as the input using the Start and Endpoint Vertices layer and delete those features from the Collect Events layer&lt;/LI&gt;&lt;LI&gt;Select By Location with the All Vertices layer as the input using the resulting Collect Events Layer and deleting those points (at this step, I've deleted all vertices where there is more than one vertex at a given location, which aren't either a start or endpoint)&lt;/LI&gt;&lt;LI&gt;Run Point To Line tool on the remaining All vertices layer&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;This was a really easy way to accomplish this, thanks for the insight!&lt;/P&gt;</description>
    <pubDate>Fri, 11 Jul 2025 19:30:28 GMT</pubDate>
    <dc:creator>City_of_Salem_OregonGIS</dc:creator>
    <dc:date>2025-07-11T19:30:28Z</dc:date>
    <item>
      <title>How to delete vertices from a line when inside a selecting polygon</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-delete-vertices-from-a-line-when-inside-a/m-p/1136705#M50471</link>
      <description>&lt;P&gt;Hi Brains Trust. I'm doing some cleanup work on a road network to make it suitable for Network Analysis, and have come across the following issue. One of the steps I have is usin the Integrate tool to align spatially different datasets. Unfortunately, a side effect of this is that lines passing across each other which normally don't intersect (as in no co-located vertices which Network Analyst uses to permit turns) now do. I've identified a lot of overpass/underpass areas which need to have these no-turn intersections cleaned, but can't find a way to bulk delete vertices when identified by an intersecting polygon. Any ideas out there on how to achieve this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below screenshot shows where a route turns off a bridge instead of following along the off ramp.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LindsayRaabe_FPCWA_0-1643076407010.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/32171i00A61C472FF9AA30/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LindsayRaabe_FPCWA_0-1643076407010.png" alt="LindsayRaabe_FPCWA_0-1643076407010.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 02:28:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-delete-vertices-from-a-line-when-inside-a/m-p/1136705#M50471</guid>
      <dc:creator>LindsayRaabe_FPCWA</dc:creator>
      <dc:date>2022-01-25T02:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete vertices from a line when inside a selecting polygon</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-delete-vertices-from-a-line-when-inside-a/m-p/1136732#M50476</link>
      <description>&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/editing/erase-point.htm" target="_blank"&gt;Erase Point (Editing)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;assuming you aren't talking about manual editing&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 03:55:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-delete-vertices-from-a-line-when-inside-a/m-p/1136732#M50476</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2022-01-25T03:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete vertices from a line when inside a selecting polygon</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-delete-vertices-from-a-line-when-inside-a/m-p/1136736#M50477</link>
      <description>&lt;P&gt;Close! Yes, I'm not talking manually - that I have well and truly sorted. Trying to automate/script a faster solution for preidentified "issue" intersections.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Erase Point tool is almost what I need, except I want vertices on a line - not standalone point features.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 03:57:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-delete-vertices-from-a-line-when-inside-a/m-p/1136736#M50477</guid>
      <dc:creator>LindsayRaabe_FPCWA</dc:creator>
      <dc:date>2022-01-25T03:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete vertices from a line when inside a selecting polygon</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-delete-vertices-from-a-line-when-inside-a/m-p/1136738#M50478</link>
      <description>&lt;P&gt;I've just found this post (&lt;A href="https://gis.stackexchange.com/questions/227268/delete-line-vertex-from-polyline-layer-using-point-feature-in-arcpy" target="_blank"&gt;https://gis.stackexchange.com/questions/227268/delete-line-vertex-from-polyline-layer-using-point-feature-in-arcpy&lt;/A&gt;) that leads me to the Feature Vertices to Points tool, which might have been helpful in a larger convert, select, rebuild process, but I don't have access to an Advanced licence (only Standard).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 04:01:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-delete-vertices-from-a-line-when-inside-a/m-p/1136738#M50478</guid>
      <dc:creator>LindsayRaabe_FPCWA</dc:creator>
      <dc:date>2022-01-25T04:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete vertices from a line when inside a selecting polygon</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-delete-vertices-from-a-line-when-inside-a/m-p/1136746#M50479</link>
      <description>&lt;P&gt;Also just found this (&lt;A href="https://gis.stackexchange.com/questions/227115/remove-polyline-vertex-outside-polygon-in-arcpy" target="_blank"&gt;https://gis.stackexchange.com/questions/227115/remove-polyline-vertex-outside-polygon-in-arcpy&lt;/A&gt;) from 5 years ago so will see if I can make it work. I've got a trial of XTools Pro which gives me the Line to Point option, so at least I have something to play with.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 04:12:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-delete-vertices-from-a-line-when-inside-a/m-p/1136746#M50479</guid>
      <dc:creator>LindsayRaabe_FPCWA</dc:creator>
      <dc:date>2022-01-25T04:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete vertices from a line when inside a selecting polygon</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-delete-vertices-from-a-line-when-inside-a/m-p/1632247#M97165</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/148829"&gt;@LindsayRaabe_FPCWA&lt;/a&gt;&amp;nbsp; did you ever find a solution to this? I have a similar situation with a water distribution network.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jul 2025 23:06:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-delete-vertices-from-a-line-when-inside-a/m-p/1632247#M97165</guid>
      <dc:creator>NathanGEOregon</dc:creator>
      <dc:date>2025-07-10T23:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete vertices from a line when inside a selecting polygon</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-delete-vertices-from-a-line-when-inside-a/m-p/1632372#M97172</link>
      <description>&lt;P&gt;Hi. Do you have an advanced license? In a nut shell, I use one of these to:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Convert line vertices to points (&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/feature-vertices-to-points.htm" target="_blank"&gt;Feature Vertices To Points (Data Management)—ArcGIS Pro | Documentation&lt;/A&gt;&amp;nbsp;- ADVANCED license)&lt;/LI&gt;&lt;LI&gt;Erase the points that fall within the polygon (&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/analysis/erase.htm" target="_blank"&gt;Erase (Analysis)—ArcGIS Pro | Documentation&lt;/A&gt;&amp;nbsp;- ADVANCED license)&lt;/LI&gt;&lt;LI&gt;Reconstruct the lines from the remaining points (&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/points-to-line.htm" target="_blank"&gt;Points To Line (Data Management)—ArcGIS Pro | Documentation&lt;/A&gt;&amp;nbsp;- BASIC license)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;At the time I didn't figure out how to do it without an advanced license, but with some playing around with python, now I have!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Starting data:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LindsayRaabe_FPCWA_0-1752236438211.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/136365i97F8A467BB14F8A9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LindsayRaabe_FPCWA_0-1752236438211.png" alt="LindsayRaabe_FPCWA_0-1752236438211.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;1. Convert lines to points using below python code:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcpy

# Set paths
input_fc = r"C:\YourProject\YourGDB.gdb\YourPolylineLayer"
output_fc = r"C:\YourProject\YourGDB.gdb\PolylineVertices"

# Use the same spatial reference as the input
spatial_ref = arcpy.Describe(input_fc).spatialReference

# Create output point feature class
arcpy.CreateFeatureclass_management(
    out_path=r"C:\YourProject\YourGDB.gdb",
    out_name="PolylineVertices",
    geometry_type="POINT",
    spatial_reference=spatial_ref
)

# Add a field to track original feature ID (optional)
arcpy.AddField_management(output_fc, "SourceID", "LONG")

# Insert points
with arcpy.da.SearchCursor(input_fc, ["OID@", "SHAPE@"]) as search_cursor, \
     arcpy.da.InsertCursor(output_fc, ["SHAPE@", "SourceID"]) as insert_cursor:

    for oid, polyline in search_cursor:
        for part in polyline:
            for point in part:
                if point:
                    insert_cursor.insertRow((point, oid))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LindsayRaabe_FPCWA_1-1752236489295.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/136366i149BE9881519390C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LindsayRaabe_FPCWA_1-1752236489295.png" alt="LindsayRaabe_FPCWA_1-1752236489295.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2. Use &lt;STRONG&gt;Select by Location&lt;/STRONG&gt; to select undesirable points&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LindsayRaabe_FPCWA_2-1752236549637.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/136367i1942B9621F953146/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LindsayRaabe_FPCWA_2-1752236549637.png" alt="LindsayRaabe_FPCWA_2-1752236549637.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;3. Use &lt;STRONG&gt;Delete Rows&lt;/STRONG&gt; to delete selected points&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LindsayRaabe_FPCWA_3-1752236627431.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/136368i10036E111162932B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LindsayRaabe_FPCWA_3-1752236627431.png" alt="LindsayRaabe_FPCWA_3-1752236627431.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LindsayRaabe_FPCWA_4-1752236712760.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/136369iF8A351130E53B01B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LindsayRaabe_FPCWA_4-1752236712760.png" alt="LindsayRaabe_FPCWA_4-1752236712760.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;4. Use &lt;STRONG&gt;Points to Line&lt;/STRONG&gt; to reconstruct lines from remaining points&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LindsayRaabe_FPCWA_5-1752236802454.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/136370iA1536EA11AE83A29/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LindsayRaabe_FPCWA_5-1752236802454.png" alt="LindsayRaabe_FPCWA_5-1752236802454.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Turn that python code into a python tool and you can string that into a model with the rest of the tools to repeat as needed.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jul 2025 12:28:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-delete-vertices-from-a-line-when-inside-a/m-p/1632372#M97172</guid>
      <dc:creator>LindsayRaabe_FPCWA</dc:creator>
      <dc:date>2025-07-11T12:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete vertices from a line when inside a selecting polygon</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-delete-vertices-from-a-line-when-inside-a/m-p/1632580#M97187</link>
      <description>&lt;P&gt;My use case was a little different, but this general workflow worked like a charm! I have a water distribution network where lines cross each other, but aren't actually connected. So I needed to delete all of the vertices where lines intersected where there wasn't actually a point feature connecting them.&lt;/P&gt;&lt;P&gt;So my workflow was basically&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Feature Vertices to Points (Start and Endpoints)&lt;/LI&gt;&lt;LI&gt;Feature Vertices to Points (All vertices)&lt;/LI&gt;&lt;LI&gt;Collect Events on the All vertices layer (counts how many vertices are stacked on each other)&lt;/LI&gt;&lt;LI&gt;Delete features in the resulting Collect Events Layer where Count = 1&lt;/LI&gt;&lt;LI&gt;Select By Location with the Collect Events Layer as the input using the Start and Endpoint Vertices layer and delete those features from the Collect Events layer&lt;/LI&gt;&lt;LI&gt;Select By Location with the All Vertices layer as the input using the resulting Collect Events Layer and deleting those points (at this step, I've deleted all vertices where there is more than one vertex at a given location, which aren't either a start or endpoint)&lt;/LI&gt;&lt;LI&gt;Run Point To Line tool on the remaining All vertices layer&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;This was a really easy way to accomplish this, thanks for the insight!&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jul 2025 19:30:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-delete-vertices-from-a-line-when-inside-a/m-p/1632580#M97187</guid>
      <dc:creator>City_of_Salem_OregonGIS</dc:creator>
      <dc:date>2025-07-11T19:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete vertices from a line when inside a selecting polygon</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-delete-vertices-from-a-line-when-inside-a/m-p/1632739#M97197</link>
      <description>&lt;P&gt;Glad you found it useful and managed to adapt it to your needs!&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jul 2025 00:37:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-delete-vertices-from-a-line-when-inside-a/m-p/1632739#M97197</guid>
      <dc:creator>LindsayRaabe_FPCWA</dc:creator>
      <dc:date>2025-07-14T00:37:31Z</dc:date>
    </item>
  </channel>
</rss>

