<?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 identify lines that are outside a polygon in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/how-to-identify-lines-that-are-outside-a-polygon/m-p/1111746#M25932</link>
    <description>&lt;P&gt;Does the Select By Location identify the lines that start inside a grid (polygon) and finish in a area without any grid (polygon).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What about this solution: Use the erase tool to delete all lines inside the grid area (polygon). The remaining lines are the ones that are outside the grid.&lt;/P&gt;</description>
    <pubDate>Wed, 27 Oct 2021 17:16:32 GMT</pubDate>
    <dc:creator>JoseSanchez</dc:creator>
    <dc:date>2021-10-27T17:16:32Z</dc:date>
    <item>
      <title>How to identify lines that are outside a polygon</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-identify-lines-that-are-outside-a-polygon/m-p/1111573#M25927</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I need to create&amp;nbsp; a python script that finds all the liens that were digitized outside a grid polygon layer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What geoprocessing tools do you recommend in Model Builder or Python to perform this analysis?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 11:33:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-identify-lines-that-are-outside-a-polygon/m-p/1111573#M25927</guid>
      <dc:creator>JoseSanchez</dc:creator>
      <dc:date>2021-10-27T11:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify lines that are outside a polygon</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-identify-lines-that-are-outside-a-polygon/m-p/1111581#M25928</link>
      <description>&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/select-layer-by-location.htm" target="_blank" rel="noopener"&gt;https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/select-layer-by-location.htm&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 11:59:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-identify-lines-that-are-outside-a-polygon/m-p/1111581#M25928</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2021-10-27T11:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify lines that are outside a polygon</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-identify-lines-that-are-outside-a-polygon/m-p/1111589#M25929</link>
      <description>&lt;P&gt;You could use either the tabulate intersection tool, which will tabulate every instance of the coinciding lines that are within a grid polygon layer.&lt;/P&gt;&lt;P&gt;If using python:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Set the script to utilize the tabulate intersection tool&lt;/LI&gt;&lt;LI&gt;Run the search cursor on the tabulate intersection table to append values to a list&lt;/LI&gt;&lt;LI&gt;Run another search cursor to identify the ones that are not within that list (list comprehension may work best for this situation if looking to simplify your code)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;That would help you identify the ones that are outside of the grid.&lt;/P&gt;&lt;P&gt;If using ModelBuilder:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Similar process but requires using the iterators and if statements.&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Wed, 27 Oct 2021 12:35:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-identify-lines-that-are-outside-a-polygon/m-p/1111589#M25929</guid>
      <dc:creator>RPGIS</dc:creator>
      <dc:date>2021-10-27T12:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify lines that are outside a polygon</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-identify-lines-that-are-outside-a-polygon/m-p/1111612#M25930</link>
      <description>&lt;P&gt;No code or model is required for this, simply use the &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/select-layer-by-location.htm#" target="_self"&gt;select by location tool&lt;/A&gt;, have the selection type set to intersect and ensure invert selection is ticked on&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 13:41:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-identify-lines-that-are-outside-a-polygon/m-p/1111612#M25930</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2021-10-27T13:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify lines that are outside a polygon</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-identify-lines-that-are-outside-a-polygon/m-p/1111746#M25932</link>
      <description>&lt;P&gt;Does the Select By Location identify the lines that start inside a grid (polygon) and finish in a area without any grid (polygon).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What about this solution: Use the erase tool to delete all lines inside the grid area (polygon). The remaining lines are the ones that are outside the grid.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 17:16:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-identify-lines-that-are-outside-a-polygon/m-p/1111746#M25932</guid>
      <dc:creator>JoseSanchez</dc:creator>
      <dc:date>2021-10-27T17:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify lines that are outside a polygon</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-identify-lines-that-are-outside-a-polygon/m-p/1112017#M25944</link>
      <description>&lt;P&gt;This is a different question you are asking and strongly demonstrates why you should always include images in your question so it very clear what you are asking (may be you should go back and edit your question and include an image?).&amp;nbsp; Your original questions asks:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;finds all the lines that were digitized &lt;STRONG&gt;outside&lt;/STRONG&gt; a grid polygon layer&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Well my simple solution finds all the lines&amp;nbsp;&lt;STRONG&gt;outside the polygons&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;You now seem to be asking&amp;nbsp; to:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;find all &lt;STRONG&gt;portions&lt;/STRONG&gt; of lines outside the polygons.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;This includes whole polylines and parts of a polyline that originated from within the polygons but are outside the polygon.&lt;/P&gt;&lt;P&gt;The erase tool would certainly achieve this, deleting the portions of lines within the polygons but be aware that this is an &lt;A href="https://desktop.arcgis.com/en/arcmap/10.3/tools/analysis-toolbox/erase.htm#L_" target="_self"&gt;advance level licensed tool&lt;/A&gt;&amp;nbsp;and if you plan to distribute your tool you need to state this in any documentation to stop people with the incorrect license using it.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Oct 2021 09:03:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-identify-lines-that-are-outside-a-polygon/m-p/1112017#M25944</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2021-10-28T09:03:29Z</dc:date>
    </item>
  </channel>
</rss>

