<?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: Cut/extract multiple feature classes at once in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/cut-extract-multiple-feature-classes-at-once/m-p/430792#M21717</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found the batch processing option in the past...which would be perfect if I worked for a County and all my feature classes stayed the same name...but to set this up for every county my internal clients work in...each using a different naming structure, it would take the same amount of time to do it manually as to set up the Batch Processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am interested in your second option tho...that sounds promising and something I've not tried yet.&amp;nbsp;The numbering of the output files is a bit troubling - it's hard to&amp;nbsp;differentiate valves and pipes on different utility systems without taking a closer look...and then renaming all of the shapefiles so my CAD users know what they are.&amp;nbsp; This would add possible errors into the mix, but it sounds better than the manual option.&amp;nbsp; It also leads me to a traditional model option which could work.&amp;nbsp; Thank you for your suggestions!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Jan 2019 14:46:21 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2019-01-25T14:46:21Z</dc:date>
    <item>
      <title>Cut/extract multiple feature classes at once</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/cut-extract-multiple-feature-classes-at-once/m-p/430790#M21715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have 30+ feature classes in a FGDB. I need to extract them to shapefiles cut down to the size of my project boundary - in a State Plane projection.&amp;nbsp; &lt;/P&gt;&lt;P&gt;Is there a tool to do them all at once instead of manually using the Select by Location tool and extracting one-by-one?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2019 19:01:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/cut-extract-multiple-feature-classes-at-once/m-p/430790#M21715</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-01-24T19:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: Cut/extract multiple feature classes at once</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/cut-extract-multiple-feature-classes-at-once/m-p/430791#M21716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One option might be to use&amp;nbsp;batch clip and batch project.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/analyze/executing-tools/a-quick-tour-of-batch-processing.htm" title="http://desktop.arcgis.com/en/arcmap/latest/analyze/executing-tools/a-quick-tour-of-batch-processing.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;A quick tour of batch processing—Help | ArcGIS Desktop&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another option would be to do this using a few tools in ArcPy: &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-functions/listfeatureclasses.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;ListFeatureClasses&lt;/A&gt; to list the feature classes in a workspace, &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/analysis-toolbox/clip.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;Clip&lt;/A&gt; to clip the feature classes to the project boundary, and &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/project.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;Project&lt;/A&gt;&amp;nbsp;and &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-classes/spatialreference.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;SpatialReference&lt;/A&gt;&amp;nbsp;to reproject them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A quick example:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;ws &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"C:\\Users\\username\\Desktop\\temp.gdb"&lt;/SPAN&gt;
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;env&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;workspace &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; ws
fcs &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ListFeatureClasses&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
output &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"C:\\Users\\username\\Desktop\\temp\\"&lt;/SPAN&gt;
out_cs &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SpatialReference&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="comment token"&gt;####)&lt;/SPAN&gt;
i &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; fc &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; fcs&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Clip_analysis&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fc&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"clipper"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;output&lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"temp"&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;str&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;i&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;".shp"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Project_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;output&lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"temp"&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;str&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;i&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;".shp"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;output&lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"temp"&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;str&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;i&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"_sp.shp"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;out_cs&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    i &lt;SPAN class="operator token"&gt;+=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this example, some feature classes are located in a geodatabase (temp.gdb), one of which is the target shape ("clipper"). Each feature class in the geodatabase is clipped to the "clipper" shape and output as a shapefile to a folder named "temp". The shapefiles are named&amp;nbsp;"temp_#.shp", where the number is incremented on each iteration of the "for" loop. After clipping, the shapefiles are projected to another coordinate system—which is selected using arcpy.SpatialReference—and "_sp" is appended to the projected shapefile name.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:21:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/cut-extract-multiple-feature-classes-at-once/m-p/430791#M21716</guid>
      <dc:creator>StephenM</dc:creator>
      <dc:date>2021-12-11T19:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Cut/extract multiple feature classes at once</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/cut-extract-multiple-feature-classes-at-once/m-p/430792#M21717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found the batch processing option in the past...which would be perfect if I worked for a County and all my feature classes stayed the same name...but to set this up for every county my internal clients work in...each using a different naming structure, it would take the same amount of time to do it manually as to set up the Batch Processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am interested in your second option tho...that sounds promising and something I've not tried yet.&amp;nbsp;The numbering of the output files is a bit troubling - it's hard to&amp;nbsp;differentiate valves and pipes on different utility systems without taking a closer look...and then renaming all of the shapefiles so my CAD users know what they are.&amp;nbsp; This would add possible errors into the mix, but it sounds better than the manual option.&amp;nbsp; It also leads me to a traditional model option which could work.&amp;nbsp; Thank you for your suggestions!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2019 14:46:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/cut-extract-multiple-feature-classes-at-once/m-p/430792#M21717</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-01-25T14:46:21Z</dc:date>
    </item>
  </channel>
</rss>

