<?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: Line in Polygon in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/line-in-polygon/m-p/356003#M27992</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan, Thanks for the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Sep 2015 17:15:18 GMT</pubDate>
    <dc:creator>IanIrmischer</dc:creator>
    <dc:date>2015-09-21T17:15:18Z</dc:date>
    <item>
      <title>Line in Polygon</title>
      <link>https://community.esri.com/t5/python-questions/line-in-polygon/m-p/355997#M27986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have 200 polyline featureclasses.&amp;nbsp; Each feature class has about 2000 features.&amp;nbsp; I would like to add a new field to each line featureclass that states whether the majority or all of a line falls within a polygon. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas? I would like to automate this with python since I have so many features and feature classes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2015 23:27:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/line-in-polygon/m-p/355997#M27986</guid>
      <dc:creator>IanIrmischer</dc:creator>
      <dc:date>2015-09-17T23:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: Line in Polygon</title>
      <link>https://community.esri.com/t5/python-questions/line-in-polygon/m-p/355998#M27987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well it will certainly be do-able but...&lt;/P&gt;&lt;P&gt;One Polygon or many? How do you want this to be reported ie adding a field to the lines stating how much lies within...&lt;/P&gt;&lt;P&gt;Is your data projected to a planar system?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2015 08:04:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/line-in-polygon/m-p/355998#M27987</guid>
      <dc:creator>NeilAyres</dc:creator>
      <dc:date>2015-09-18T08:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: Line in Polygon</title>
      <link>https://community.esri.com/t5/python-questions/line-in-polygon/m-p/355999#M27988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neil, I there is a polygon shapefile.  Lets call it a lakes.  There are&lt;/P&gt;&lt;P&gt;many lakes.  Currently it is a multipoly with just one feature but I could&lt;/P&gt;&lt;P&gt;break in up so each lake was its own feature.  I basically want to know if&lt;/P&gt;&lt;P&gt;the line falls mostly in a lake or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the line FC, I would like a new field coded with a 1 or 0.  1 if &amp;gt;50%&lt;/P&gt;&lt;P&gt;of the line falls within the lake.  0 if not.  All the data is in UTM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does that make sense?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2015 15:32:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/line-in-polygon/m-p/355999#M27988</guid>
      <dc:creator>IanIrmischer</dc:creator>
      <dc:date>2015-09-18T15:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: Line in Polygon</title>
      <link>https://community.esri.com/t5/python-questions/line-in-polygon/m-p/356000#M27989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Couldn't you do just an intersect or union function on the lines and the polys, then process the output to compute the result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2015 15:41:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/line-in-polygon/m-p/356000#M27989</guid>
      <dc:creator>NeilAyres</dc:creator>
      <dc:date>2015-09-18T15:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: Line in Polygon</title>
      <link>https://community.esri.com/t5/python-questions/line-in-polygon/m-p/356001#M27990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know my solution is somewhere around the overlay and spatial join tools.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I read that union was polygon to polygon so I don't think that will work&lt;/P&gt;&lt;P&gt;with my line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for intersection, the output is new features.  And it cracks the lines&lt;/P&gt;&lt;P&gt;into new lines if only part of the line falls within the polygon.  I just&lt;/P&gt;&lt;P&gt;want a Boolean response to whether the majority of a line segment falls&lt;/P&gt;&lt;P&gt;within the polygon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to choose the line if more than half of it falls within the&lt;/P&gt;&lt;P&gt;polygon?  I am worried about a scenario where only part of the line falls&lt;/P&gt;&lt;P&gt;inside a lake.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2015 18:46:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/line-in-polygon/m-p/356001#M27990</guid>
      <dc:creator>IanIrmischer</dc:creator>
      <dc:date>2015-09-18T18:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: Line in Polygon</title>
      <link>https://community.esri.com/t5/python-questions/line-in-polygon/m-p/356002#M27991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The ability to determine proportional inclusion or intersection would require creating new features... somewhere, permanent or temporary... so you may as well add length fields to the target feature, perform the intersect/whatever, then calculate a new geometry field and a proportion field (length new/length original) and query for those that are completely within (100%) or significantly within (&amp;gt;50% for example) and save those results to a final destination file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2015 19:07:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/line-in-polygon/m-p/356002#M27991</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-09-18T19:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: Line in Polygon</title>
      <link>https://community.esri.com/t5/python-questions/line-in-polygon/m-p/356003#M27992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan, Thanks for the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2015 17:15:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/line-in-polygon/m-p/356003#M27992</guid>
      <dc:creator>IanIrmischer</dc:creator>
      <dc:date>2015-09-21T17:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: Line in Polygon</title>
      <link>https://community.esri.com/t5/python-questions/line-in-polygon/m-p/356004#M27993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To build on what Dan suggested, you can join the attribute table from the final results back to your original line data if you need the lines in their original form.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 19:45:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/line-in-polygon/m-p/356004#M27993</guid>
      <dc:creator>GabrielUpchurch1</dc:creator>
      <dc:date>2015-09-22T19:45:32Z</dc:date>
    </item>
  </channel>
</rss>

