<?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: batch clip one feature using multiple clip extents in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/batch-clip-one-feature-using-multiple-clip-extents/m-p/167821#M5622</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ah ha!&amp;nbsp; That did exactly what I wanted.&amp;nbsp; Thanks so much Mathew!!!&amp;nbsp; Boy, do I feel dumb.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 May 2012 17:56:24 GMT</pubDate>
    <dc:creator>AnnKitowski</dc:creator>
    <dc:date>2012-05-01T17:56:24Z</dc:date>
    <item>
      <title>batch clip one feature using multiple clip extents</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/batch-clip-one-feature-using-multiple-clip-extents/m-p/167817#M5618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a soils feature class that I want to clip.&amp;nbsp; I have a township feature class that I want to use as the clipping extent.&amp;nbsp; However, I want to clip soils by each township in order to find the acreage of a certain soil in each town.&amp;nbsp; Right now in ArcMap I'd have to select one township, clip out the soils, get an output.&amp;nbsp; But I have to do that 22 times.&amp;nbsp; Not a huge deal if it's a one time thing, but I need to use this functionality over and over for other stuff, so it would be nice to somehow batch clip.&amp;nbsp; There are so many posts on how to clip multiple feature classes using the same clip extent but not the other way around.&amp;nbsp; Anyone know how to do this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2012 15:25:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/batch-clip-one-feature-using-multiple-clip-extents/m-p/167817#M5618</guid>
      <dc:creator>AnnKitowski</dc:creator>
      <dc:date>2012-05-01T15:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: batch clip one feature using multiple clip extents</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/batch-clip-one-feature-using-multiple-clip-extents/m-p/167818#M5619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You'll want to use python for this (or model builder if you are so inclined). For this example I assume each township extent is it's own feature class in a directory. It appends a unique count number to the end of the output if they don't have unique names. This should give you a good place to start.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
import os
ws = r"C:\your_township_dir"
arcpy.env.workspace = ws
outdir = r"C:\outdir"
soils_fc = "path_to_soils_fc"
soils_temp = r"in_memory\soils_temp"
arcpy.MakeFeatureLayer_management(soils_fc,soils_temp)
twp_temp = r"in_memory\twp_temp"
fc_list = arcpy.ListFeatureClasses()
unique = 1
for fc in fc_list:
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.MakeFeatureLayer_management(fc,twp_temp)
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Clip_analysis(soils_temp,twp_temp,os.path.join(outdir,fc+unique))
&amp;nbsp;&amp;nbsp;&amp;nbsp; unique += 1
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:44:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/batch-clip-one-feature-using-multiple-clip-extents/m-p/167818#M5619</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2021-12-11T08:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: batch clip one feature using multiple clip extents</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/batch-clip-one-feature-using-multiple-clip-extents/m-p/167819#M5620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the script.&amp;nbsp; The townships are all in one feature class.&amp;nbsp; Can a script go through the clipping process and pick a different town by name each time? Is it also possible to have just one output feature class?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2012 17:36:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/batch-clip-one-feature-using-multiple-clip-extents/m-p/167819#M5620</guid>
      <dc:creator>AnnKitowski</dc:creator>
      <dc:date>2012-05-01T17:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: batch clip one feature using multiple clip extents</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/batch-clip-one-feature-using-multiple-clip-extents/m-p/167820#M5621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That sounds more like an intersect operation than a clip.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2012 17:40:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/batch-clip-one-feature-using-multiple-clip-extents/m-p/167820#M5621</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2012-05-01T17:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: batch clip one feature using multiple clip extents</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/batch-clip-one-feature-using-multiple-clip-extents/m-p/167821#M5622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ah ha!&amp;nbsp; That did exactly what I wanted.&amp;nbsp; Thanks so much Mathew!!!&amp;nbsp; Boy, do I feel dumb.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2012 17:56:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/batch-clip-one-feature-using-multiple-clip-extents/m-p/167821#M5622</guid>
      <dc:creator>AnnKitowski</dc:creator>
      <dc:date>2012-05-01T17:56:24Z</dc:date>
    </item>
  </channel>
</rss>

