<?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 Clip line features from multiple polygon feature class in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-to-clip-line-features-from-multiple-polygon/m-p/318607#M24766</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How did you flesh out Neil's ..etc... part?&amp;nbsp; You didn't include your code sample to show how you cycled through the polygon shapes to do the intersect and then the split?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 May 2016 13:41:50 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2016-05-30T13:41:50Z</dc:date>
    <item>
      <title>How to Clip line features from multiple polygon feature class</title>
      <link>https://community.esri.com/t5/python-questions/how-to-clip-line-features-from-multiple-polygon/m-p/318602#M24761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am new to arcgis python,&amp;nbsp; i am in learning stage, i have one taluk boundary feature&amp;nbsp; class which has 200 polygon features. And i have line feature class with 2500 features.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; My question is how do i clip these line feature class one by one using python script?&lt;/P&gt;&lt;P&gt;For example i have to take one taluk boundary and clip it and display the message "This is the taluk for this line feature" like this. Please help me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 May 2016 07:05:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-clip-line-features-from-multiple-polygon/m-p/318602#M24761</guid>
      <dc:creator>SadanandacharB1</dc:creator>
      <dc:date>2016-05-27T07:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to Clip line features from multiple polygon feature class</title>
      <link>https://community.esri.com/t5/python-questions/how-to-clip-line-features-from-multiple-polygon/m-p/318603#M24762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use existing tools...&lt;/P&gt;&lt;P&gt;Union or intersect your polygons to the lines then use the Split tool (Analysis toolbox).&lt;/P&gt;&lt;P&gt;Or you could use python the read each poly geometry and clip the lines each time.&lt;/P&gt;&lt;P&gt;something like this :&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;with arcpy.da.SearchCursor(polyFc, ["SHAPE@"]) as Cur:
&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in Cur:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pGeom = row[0]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Clip_analysis(lineFc, pGeom, output)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; etc.....&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will need to setvariables polyFc &amp;amp; lineFc to points to some data. And set output.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:08:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-clip-line-features-from-multiple-polygon/m-p/318603#M24762</guid>
      <dc:creator>NeilAyres</dc:creator>
      <dc:date>2021-12-11T15:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to Clip line features from multiple polygon feature class</title>
      <link>https://community.esri.com/t5/python-questions/how-to-clip-line-features-from-multiple-polygon/m-p/318604#M24763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You probably need to look at the &lt;A href="http://pro.arcgis.com/en/pro-app/tool-reference/analysis/intersect.htm" title="http://pro.arcgis.com/en/pro-app/tool-reference/analysis/intersect.htm"&gt;Intersect—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp; tool, but do you really need to clip each feature on it's own?&amp;nbsp; Once you have intersected the line features with the polygon features, you can assign the polygon attributes to the line features.&amp;nbsp; Unless the line feature class is dynamic and you need to repeat the process frequently.&amp;nbsp; What is the rule for when the line feature intersects with more than one polygon?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 May 2016 07:23:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-clip-line-features-from-multiple-polygon/m-p/318604#M24763</guid>
      <dc:creator>FC_Basson</dc:creator>
      <dc:date>2016-05-27T07:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to Clip line features from multiple polygon feature class</title>
      <link>https://community.esri.com/t5/python-questions/how-to-clip-line-features-from-multiple-polygon/m-p/318605#M24764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If intersect produces a unique ID field, you could use &lt;A href="http://www.arcgis.com/home/item.html?id=15ca63aebb4647a4b07bc94f3d051da5"&gt;split Layer by Attributes &lt;/A&gt;to produce shapefiles of the output using that key&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 May 2016 08:16:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-clip-line-features-from-multiple-polygon/m-p/318605#M24764</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-05-27T08:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to Clip line features from multiple polygon feature class</title>
      <link>https://community.esri.com/t5/python-questions/how-to-clip-line-features-from-multiple-polygon/m-p/318606#M24765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I tried as per your suggestion, but i am not getting,&lt;/P&gt;&lt;P&gt;Bellow is my polygon features and line features&lt;IMG alt="Roads.jpg" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/206269_Roads.jpg" style="width: 620px; height: 633px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Taluk.jpg" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/206268_Taluk.jpg" style="width: 620px; height: 763px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 May 2016 12:55:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-clip-line-features-from-multiple-polygon/m-p/318606#M24765</guid>
      <dc:creator>SadanandacharB1</dc:creator>
      <dc:date>2016-05-30T12:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to Clip line features from multiple polygon feature class</title>
      <link>https://community.esri.com/t5/python-questions/how-to-clip-line-features-from-multiple-polygon/m-p/318607#M24766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How did you flesh out Neil's ..etc... part?&amp;nbsp; You didn't include your code sample to show how you cycled through the polygon shapes to do the intersect and then the split?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 May 2016 13:41:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-clip-line-features-from-multiple-polygon/m-p/318607#M24766</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-05-30T13:41:50Z</dc:date>
    </item>
  </channel>
</rss>

