<?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: Selecting Polygons Overlayed by Polylines in Spatial Data Science Questions</title>
    <link>https://community.esri.com/t5/spatial-data-science-questions/selecting-polygons-overlayed-by-polylines/m-p/482237#M1077</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another way to solve this is to use two &lt;EM&gt;Select By Locations&lt;/EM&gt;.&amp;nbsp; For example, one could use &lt;EM&gt;Select By Location&lt;/EM&gt; to find the parcels crossed by the lines, then save that selection out as a new feature class, then run the second &lt;EM&gt;Select By Location&lt;/EM&gt; comparing the output from the first one to the points.&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/map/working-with-layers/using-select-by-location.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/map/working-with-layers/using-select-by-location.htm"&gt;Using Select By Location—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="/legacyfs/online/396353_2018-02-12 08_14_08-Select_Polys_by_Line_then_near_Points - ArcMap.jpg" style="width: 620px; height: 334px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-2 jive-image j-img-original" src="/legacyfs/online/396354_2018-02-12 08_16_21-Select_Polys_by_Line_then_near_Points - ArcMap.jpg" style="width: 620px; height: 295px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris Donohue, GISP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Feb 2018 16:17:19 GMT</pubDate>
    <dc:creator>ChrisDonohue__GISP</dc:creator>
    <dc:date>2018-02-12T16:17:19Z</dc:date>
    <item>
      <title>Selecting Polygons Overlayed by Polylines</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/selecting-polygons-overlayed-by-polylines/m-p/482235#M1075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to select polygons from a feature class using a polyline feature class.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See below for an example that shows the type of feature class/general concept I'm dealing with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/396308_pastedImage_1.png" style="width: 620px; height: 634px;" /&gt;&lt;/P&gt;&lt;P&gt;I don't want to have all three polygons selected, just the two with the blue dots.&amp;nbsp; &amp;nbsp;My end goal is to export the selected polygons so that I can merge them into a one large polygon.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It doesn't seem like there is a Select By Location method that can isolate the polygons I'm interested in (again, the two that contain dblue dots).&amp;nbsp; I tried "Append" on the two feature classes (first had to convert polygons to lines) and then used "Trim Line".&amp;nbsp; That worked to get rid of the dangle, but I couldn't get a line feature back that could be used for the purpose I wanted in Select By Location.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I tried Integrate to change the line to get it inside just the two Polygons of interest (so I could then use it to select the two polygons instead of having all three polygons selected), but that was a bit too messy for the actual feature classes I have. In other words, the line feature didn't modify in predictable way that would be helpful to use it in Select By Location.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Josh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 00:47:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/selecting-polygons-overlayed-by-polylines/m-p/482235#M1075</guid>
      <dc:creator>JoshuaBrengel</dc:creator>
      <dc:date>2018-02-12T00:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting Polygons Overlayed by Polylines</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/selecting-polygons-overlayed-by-polylines/m-p/482236#M1076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try Intersect...&lt;/P&gt;&lt;P&gt;Intersect the polylines with the polygon, and select a polyline as output.&amp;nbsp; Your polyline should be divided into 3 pieces, two of which will be the ones that you want to use with a select by location, selecting the polylines that are nearest to the points..&amp;nbsp; If you have an advanced license, the Near tool might help, or even a spatial join of the segmented polylines to the points&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 01:32:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/selecting-polygons-overlayed-by-polylines/m-p/482236#M1076</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-02-12T01:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting Polygons Overlayed by Polylines</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/selecting-polygons-overlayed-by-polylines/m-p/482237#M1077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another way to solve this is to use two &lt;EM&gt;Select By Locations&lt;/EM&gt;.&amp;nbsp; For example, one could use &lt;EM&gt;Select By Location&lt;/EM&gt; to find the parcels crossed by the lines, then save that selection out as a new feature class, then run the second &lt;EM&gt;Select By Location&lt;/EM&gt; comparing the output from the first one to the points.&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/map/working-with-layers/using-select-by-location.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/map/working-with-layers/using-select-by-location.htm"&gt;Using Select By Location—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="/legacyfs/online/396353_2018-02-12 08_14_08-Select_Polys_by_Line_then_near_Points - ArcMap.jpg" style="width: 620px; height: 334px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-2 jive-image j-img-original" src="/legacyfs/online/396354_2018-02-12 08_16_21-Select_Polys_by_Line_then_near_Points - ArcMap.jpg" style="width: 620px; height: 295px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris Donohue, GISP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 16:17:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/selecting-polygons-overlayed-by-polylines/m-p/482237#M1077</guid>
      <dc:creator>ChrisDonohue__GISP</dc:creator>
      <dc:date>2018-02-12T16:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting Polygons Overlayed by Polylines</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/selecting-polygons-overlayed-by-polylines/m-p/482238#M1078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris and Dan.&amp;nbsp; By drawing the two blue dots, I think I misled you both with my actual problem.&amp;nbsp; My apologies.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The two blue dots are not actual&amp;nbsp;point features in ArcMap.&amp;nbsp; They are just dots I drew in with Windows' Snipping Tool to distinguish the polygons that I'd like to be selected.&amp;nbsp; &amp;nbsp;Basically, I just want to end up selecting the two polygons marked by the blue dots, as these two polygons will represent a watershed around the stream feature (i.e. polyline feature).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The third polygon that has no blue dot and has the dangle should not be selected.&amp;nbsp; The dangle exists because my polyline and polygon data are not the same accuracy, which prevents me from nicely selecting the polygons that intersect the polylines.&amp;nbsp; &amp;nbsp;I would then export these polygons and dissolve them to have a final watershed around the stream of interest.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, I'm sorry about the confusion and hopefully, that clears things up.&amp;nbsp; Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 17:43:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/selecting-polygons-overlayed-by-polylines/m-p/482238#M1078</guid>
      <dc:creator>JoshuaBrengel</dc:creator>
      <dc:date>2018-02-12T17:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting Polygons Overlayed by Polylines</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/selecting-polygons-overlayed-by-polylines/m-p/482239#M1079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For my intersect option, then you would want to select the line segments that have both segments endpoints in them&lt;/P&gt;&lt;P&gt;The pictures here&amp;nbsp;&lt;A href="http://pro.arcgis.com/en/pro-app/tool-reference/data-management/select-by-location-graphical-examples.htm"&gt;http://pro.arcgis.com/en/pro-app/tool-reference/data-management/select-by-location-graphical-examples.htm and here&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/select-by-location-graphical-examples.htm"&gt;http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/select-by-location-graphical-examples.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;will pretty rule out a lot of options but this might be the key since the dangle segment doesn't reach the other side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: transparent; color: #4c4c4c; font-family: &amp;amp;quot; avenir next w01&amp;amp;quot;,&amp;amp;quot;avenir next w00&amp;amp;quot;,&amp;amp;quot;avenir next&amp;amp;quot;,&amp;amp;quot;avenir&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,sans-serif; font-size: 15.8px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: 0px; list-style-position: outside; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; margin: 0px;"&gt;CROSSED_BY_THE_OUTLINE_OF&lt;/SPAN&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #4c4c4c; font-family: 'Avenir Next W01','Avenir Next W00','Avenir Next','Avenir','Helvetica Neue',sans-serif; font-size: 15.8px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: 0px; list-style-position: outside; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt; —&lt;/SPAN&gt;&lt;SPAN style="background-color: transparent; color: #4c4c4c; font-family: &amp;amp;quot; avenir next w01&amp;amp;quot;,&amp;amp;quot;avenir next w00&amp;amp;quot;,&amp;amp;quot;avenir next&amp;amp;quot;,&amp;amp;quot;avenir&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,sans-serif; font-size: 15.8px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: 0px; list-style-position: outside; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; margin: 0px;"&gt;The features in the join features will be matched if a target feature is crossed by their outline. The join and target features must be lines or polygons. If polygons are used for the join or target features, the polygon's boundary (line) will be used. Lines that cross at a point will be matched, not lines that share a line segment.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 17:56:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/selecting-polygons-overlayed-by-polylines/m-p/482239#M1079</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-02-12T17:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting Polygons Overlayed by Polylines</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/selecting-polygons-overlayed-by-polylines/m-p/482240#M1080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Depending on the precision of your data you could accomplish this by doing several steps. You could create a point featureclass from the line, creating points for "BOTH_ENDS":&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/396367_pastedImage_1.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And apply a small buffer to those points to make sure that we can distinguish the end points that area really located within a polygon and not on the outline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first step would be to select those polygons where the lines&amp;nbsp;intersect the polygons:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/396371_pastedImage_2.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will select all 3 polygons. Then you will remove polygons from the selection that completely contain the buffered end points:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/396372_pastedImage_3.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To end up with this:&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-4" src="https://community.esri.com/legacyfs/online/396373_pastedImage_4.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;You could also use some python code and intersect&amp;nbsp;each polygon outline with the line and count the resulting points (2 gets selected and 1 not).&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 18:35:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/selecting-polygons-overlayed-by-polylines/m-p/482240#M1080</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2018-02-12T18:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting Polygons Overlayed by Polylines</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/selecting-polygons-overlayed-by-polylines/m-p/482241#M1081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As an example snippet how this could be done in Python:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;def&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;main&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; &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy

&amp;nbsp;&amp;nbsp;&amp;nbsp; fc_poly &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;'C:\GeoNet\SelectPolygonByLine\data.gdb\polygons'&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; fc_line &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;'C:\GeoNet\SelectPolygonByLine\data.gdb\line'&lt;/SPAN&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp; polyline &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;da&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SearchCursor&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fc_line&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="punctuation token"&gt;.&lt;/SPAN&gt;next&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="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp; fid_set &lt;SPAN class="operator 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; &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;SearchCursor&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fc_poly&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="string token"&gt;'OID@'&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; curs&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="keyword token"&gt;for&lt;/SPAN&gt; row &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; curs&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; polygon &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;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; oid &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;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; outline &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; polygon&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;boundary
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; result &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; polygon&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;intersect&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;polyline&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; &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; len&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;result&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;2&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; fid_set&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;append&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;oid&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp; fld_oid &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Describe&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fc_poly&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;OIDFieldname
&amp;nbsp;&amp;nbsp;&amp;nbsp; where &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'{0} IN ({1})'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;AddFieldDelimiters&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fc_poly&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; fld_oid&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;', '&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;join&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;str&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;a&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; a &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; fid_set&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; where

&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; __name__ &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'__main__'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; main&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&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;/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;When using this situation (label of polygon is OBJECTID):&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/396377_pastedImage_1.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will yield a where like:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;OBJECTID &lt;SPAN class="operator token"&gt;IN&lt;/SPAN&gt; &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; &lt;SPAN class="number token"&gt;2&lt;/SPAN&gt;&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I apply this to the polygon layer, you get this result:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/396378_pastedImage_2.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But all depends on the precision of the data...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 21:17:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/selecting-polygons-overlayed-by-polylines/m-p/482241#M1081</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-11T21:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting Polygons Overlayed by Polylines</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/selecting-polygons-overlayed-by-polylines/m-p/482242#M1082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help and creative idea Dan.&amp;nbsp; I tried your suggestion but I did not get the results I wanted unfortunately.&amp;nbsp; I think I oversimplified my features in the drawing.&amp;nbsp; Essentially, there are cases in which dangles represent actual features (in other words, there are features that don't completely cross the polygons that I need to keep).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are two examples of actual data I'm looking at:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) I want to select and keep the polygons with a red X.&amp;nbsp; Polygons with a blue X will be incorrectly selected using my current methodology, since the polyline and polygon precision is different:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/396408_pastedImage_1.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Here's an example of a dangle I'd like to use to actually select an underlying polygon.&amp;nbsp; I want to keep all polygons in this picture but to make it easier to distinguish, I put a Red X in the polygon with the dangle:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/396409_pastedImage_2.png" style="width: 620px; height: 355px;" /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does that give you a better idea of what I'd like to accomplish?&amp;nbsp; &amp;nbsp;In any case, it's a fun problem!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Josh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 20:56:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/selecting-polygons-overlayed-by-polylines/m-p/482242#M1082</guid>
      <dc:creator>JoshuaBrengel</dc:creator>
      <dc:date>2018-02-12T20:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting Polygons Overlayed by Polylines</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/selecting-polygons-overlayed-by-polylines/m-p/482243#M1083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a logic in the procedure? Like a minimum length that a line should cross the polygon to be included in the selection?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 21:25:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/selecting-polygons-overlayed-by-polylines/m-p/482243#M1083</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2018-02-12T21:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting Polygons Overlayed by Polylines</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/selecting-polygons-overlayed-by-polylines/m-p/482244#M1084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xander.&amp;nbsp; Unfortunately, the length of the lines, in theory, could be of all different lengths.&amp;nbsp; As a general rule, they would be pretty short though, sort of like the small lengths of lines that pass through the polygons with the blue X in the first picture above.&amp;nbsp; Using a minimum length somehow might be a good way to approach it though, since the dataset is relatively small I'm dealing with and miss polygons could be added manually.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 23:49:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/selecting-polygons-overlayed-by-polylines/m-p/482244#M1084</guid>
      <dc:creator>JoshuaBrengel</dc:creator>
      <dc:date>2018-02-12T23:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting Polygons Overlayed by Polylines</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/selecting-polygons-overlayed-by-polylines/m-p/482245#M1085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At this point perhaps&amp;nbsp; working with something that gets 'most' is the best solution... then isolate the 'corner cases' for further analysis&lt;/P&gt;&lt;P&gt;Breaking the problem into parts may result in a multi-step process rather than striving for a one-step-gets-all&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2018 00:15:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/selecting-polygons-overlayed-by-polylines/m-p/482245#M1085</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-02-13T00:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting Polygons Overlayed by Polylines</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/selecting-polygons-overlayed-by-polylines/m-p/482246#M1086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the dataset is relatively small then I would suggest to select all polygons that intersect the line and manually deselect those that you don't want. Rather this, than invest time in a procedure to select most of the polygons you want and still having to select those that were left out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2018 11:23:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/selecting-polygons-overlayed-by-polylines/m-p/482246#M1086</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2018-02-13T11:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting Polygons Overlayed by Polylines</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/selecting-polygons-overlayed-by-polylines/m-p/482247#M1087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, thank you for your help Dan.&amp;nbsp; Agreed.&amp;nbsp; I will stick with what gets me the most polygons and then do a manual overview. I will mark your intersect solution as correct.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2018 20:31:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/selecting-polygons-overlayed-by-polylines/m-p/482247#M1087</guid>
      <dc:creator>JoshuaBrengel</dc:creator>
      <dc:date>2018-02-13T20:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting Polygons Overlayed by Polylines</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/selecting-polygons-overlayed-by-polylines/m-p/482248#M1088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Xander.&amp;nbsp; It's an interesting problem.&amp;nbsp; I appreciate your advice on it.&amp;nbsp; While I wish there was a way to do things non-manually, I think unfortunately the data's precision requires the solution includes some manual work.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2018 20:33:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/selecting-polygons-overlayed-by-polylines/m-p/482248#M1088</guid>
      <dc:creator>JoshuaBrengel</dc:creator>
      <dc:date>2018-02-13T20:33:16Z</dc:date>
    </item>
  </channel>
</rss>

