<?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: Cut feature line between two non-touching feature points in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/cut-feature-line-between-two-non-touching-feature/m-p/1019986#M36366</link>
    <description>&lt;P&gt;Yes it does require an advanced license and your access to tools in python scripts would be limited to your license level.&amp;nbsp; That particular tool doesn't require an extra extension, it is part of the Data Management toolset.&lt;/P&gt;&lt;P&gt;You will be able to construct transect lines between two points if the signals are sequentially ordered&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/xy-to-line.htm" target="_blank"&gt;XY To Line (Data Management)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Jan 2021 11:56:04 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2021-01-26T11:56:04Z</dc:date>
    <item>
      <title>Cut feature line between two non-touching feature points</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/cut-feature-line-between-two-non-touching-feature/m-p/1019962#M36362</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;How can I automatically cut a feature line between two non-touching points of a different feature?&lt;/P&gt;&lt;P&gt;Explanation : I work for a railway construction company, and it is important for us to identify track possessions. A track possession is a line of railway between two signals. I have a layer for railway lines and a layer for signals, now I am interested in automatically generating track possessions.&lt;/P&gt;&lt;P&gt;Example: I have tracks (red lines) and signals (green circles)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NikolajKlausen_1-1611652862051.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/4546i1AE688F440720400/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NikolajKlausen_1-1611652862051.png" alt="NikolajKlausen_1-1611652862051.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I create a new feature layer with the track for which I have a track possession, in this case track 2. In addition, I create a new feature layer with 2 green circles.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NikolajKlausen_3-1611654010382.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/4548iFE6AD997B810D10C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NikolajKlausen_3-1611654010382.png" alt="NikolajKlausen_3-1611654010382.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I want to "cut" the track, so I get a track segment between the two green circles. I don't know how to do this, so I created a new line and manually drew it on top of the track between the two green circles. Then I added a buffer ring around this new line, and end up with the following:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NikolajKlausen_4-1611654317494.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/4549i0740E456A09442B4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NikolajKlausen_4-1611654317494.png" alt="NikolajKlausen_4-1611654317494.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can now add the original layers to my map and I have now created 1 track possession :&lt;/P&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="NikolajKlausen_5-1611654377982.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/4550iAF50B1BC4F123D6E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NikolajKlausen_5-1611654377982.png" alt="NikolajKlausen_5-1611654377982.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any clever way of doing this automatically?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nikolaj&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 09:49:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/cut-feature-line-between-two-non-touching-feature/m-p/1019962#M36362</guid>
      <dc:creator>NikolajKlausen</dc:creator>
      <dc:date>2021-01-26T09:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: Cut feature line between two non-touching feature points</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/cut-feature-line-between-two-non-touching-feature/m-p/1019970#M36364</link>
      <description>&lt;P&gt;Did you try?&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/split-line-at-point.htm" target="_blank"&gt;Split Line at Point (Data Management)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="uicontrol"&gt;Search Radius&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;(&lt;/SPAN&gt;&lt;SPAN class="usertext"&gt;search_radius&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;in Python) is unspecified, the nearest point will be used to split the line feature. If a&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="uicontrol"&gt;Search Radius&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;is specified, all points within the search radius are used to split the line.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 10:43:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/cut-feature-line-between-two-non-touching-feature/m-p/1019970#M36364</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-01-26T10:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: Cut feature line between two non-touching feature points</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/cut-feature-line-between-two-non-touching-feature/m-p/1019983#M36365</link>
      <description>&lt;P&gt;Hey Dan,&lt;/P&gt;&lt;P&gt;Thank you for your reply, that seems to be a viable solution.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can see it requires an extension which my current license does not have.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it correctly understood that the functionality of my scripts in Python also depends on my ArcGIS Pro license?&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 11:37:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/cut-feature-line-between-two-non-touching-feature/m-p/1019983#M36365</guid>
      <dc:creator>NikolajKlausen</dc:creator>
      <dc:date>2021-01-26T11:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: Cut feature line between two non-touching feature points</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/cut-feature-line-between-two-non-touching-feature/m-p/1019986#M36366</link>
      <description>&lt;P&gt;Yes it does require an advanced license and your access to tools in python scripts would be limited to your license level.&amp;nbsp; That particular tool doesn't require an extra extension, it is part of the Data Management toolset.&lt;/P&gt;&lt;P&gt;You will be able to construct transect lines between two points if the signals are sequentially ordered&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/xy-to-line.htm" target="_blank"&gt;XY To Line (Data Management)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 11:56:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/cut-feature-line-between-two-non-touching-feature/m-p/1019986#M36366</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-01-26T11:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: Cut feature line between two non-touching feature points</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/cut-feature-line-between-two-non-touching-feature/m-p/1020374#M36418</link>
      <description>&lt;P&gt;Here is a code sample that&amp;nbsp; gets point (pt) and return a snap point on a line in roadFC in a tolerance tol&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;def  returnSnapPoint(pt):
    try:
        if(pt == None): return None
        # return the point snap to closest line or None
        if(arcpy.Exists('road_lyr') == True):
            arcpy.Delete_management('road_lyr')
        arcpy.MakeFeatureLayer_management(roadFC, 'road_lyr')
        arcpy.SelectLayerByLocation_management('road_lyr', 'WITHIN_A_DISTANCE', [pt], tol)
        c = int(arcpy.GetCount_management('road_lyr')[0])
        if( c == 0): return None
        dist = 1000
        closeLine = None
        # get closest line
        with arcpy.da.SearchCursor('road_lyr', ["SHAPE@"]) as cursor:
            for row in cursor:
                if(closeLine == None): # first
                    closeLine = row[0]
                    dist = closeLine.distanceTo(pt)
                else:
                    if(closeLine.distanceTo(pt) &amp;gt; dist &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; continue # not closest
                    closeLine = row[0]
                    dist = closeLine.distanceTo(pt)

        return closeLine.snapToLine(pt)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 05:34:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/cut-feature-line-between-two-non-touching-feature/m-p/1020374#M36418</guid>
      <dc:creator>mody_buchbinder</dc:creator>
      <dc:date>2021-01-27T05:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: Cut feature line between two non-touching feature points</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/cut-feature-line-between-two-non-touching-feature/m-p/1020393#M36420</link>
      <description>&lt;P&gt;Thank you Mody,&lt;/P&gt;&lt;P&gt;I'll try it out and let you know if it works out for me.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Nikolaj&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 06:54:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/cut-feature-line-between-two-non-touching-feature/m-p/1020393#M36420</guid>
      <dc:creator>NikolajKlausen</dc:creator>
      <dc:date>2021-01-27T06:54:07Z</dc:date>
    </item>
  </channel>
</rss>

