<?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 Update Data Extract Task (clip and ship) for annotation in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/update-data-extract-task-clip-and-ship-for/m-p/1612658#M27573</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Could someone please update the DataExtract.py to include annotation layers. I currently have to update the script manually every time we update our ArcGIS software. It's an easy fix, in the&amp;nbsp;&lt;STRONG&gt;ExtractData.py&lt;/STRONG&gt; found in the following locations:&lt;BR /&gt;&lt;BR /&gt;C:\Program Files\ArcGIS\Pro\Resources\ArcToolBox\Scripts&lt;BR /&gt;C:\Program Files\ArcGIS\Server\framework\runtime\ArcGIS\Resources\ArcToolBox\Scripts&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Go to the following function:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF9900"&gt;def&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;clipAndConvert&lt;/FONT&gt;&lt;/STRONG&gt;(lyrs, aoi, featureFormat, rasterFormat, coordinateSystem):&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;# Add &lt;STRONG&gt;"annontationlayer"&lt;/STRONG&gt; to the line if dataType in ["featurelayer", "rasterlayer"]: e.g.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#FF9900"&gt;if&lt;/FONT&gt; dataType &lt;FONT color="#FF9900"&gt;in&lt;/FONT&gt; ["featurelayer", "rasterlayer", "annotationlayer"]:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank-you! I'd really appreciate it.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I've included the updated script below for anyone interested. I have modified other things in the script e.g. updated the python functions to the modern ones e.g.&amp;nbsp;arcpy.Clip_management() &amp;gt;&amp;nbsp;arcpy.management.Clip()&lt;/P&gt;&lt;P&gt;Anything that is commented CHANGED has been update.&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;</description>
    <pubDate>Thu, 08 May 2025 01:06:51 GMT</pubDate>
    <dc:creator>BryanP</dc:creator>
    <dc:date>2025-05-08T01:06:51Z</dc:date>
    <item>
      <title>Update Data Extract Task (clip and ship) for annotation</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/update-data-extract-task-clip-and-ship-for/m-p/1612658#M27573</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Could someone please update the DataExtract.py to include annotation layers. I currently have to update the script manually every time we update our ArcGIS software. It's an easy fix, in the&amp;nbsp;&lt;STRONG&gt;ExtractData.py&lt;/STRONG&gt; found in the following locations:&lt;BR /&gt;&lt;BR /&gt;C:\Program Files\ArcGIS\Pro\Resources\ArcToolBox\Scripts&lt;BR /&gt;C:\Program Files\ArcGIS\Server\framework\runtime\ArcGIS\Resources\ArcToolBox\Scripts&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Go to the following function:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF9900"&gt;def&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;clipAndConvert&lt;/FONT&gt;&lt;/STRONG&gt;(lyrs, aoi, featureFormat, rasterFormat, coordinateSystem):&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;# Add &lt;STRONG&gt;"annontationlayer"&lt;/STRONG&gt; to the line if dataType in ["featurelayer", "rasterlayer"]: e.g.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#FF9900"&gt;if&lt;/FONT&gt; dataType &lt;FONT color="#FF9900"&gt;in&lt;/FONT&gt; ["featurelayer", "rasterlayer", "annotationlayer"]:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank-you! I'd really appreciate it.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I've included the updated script below for anyone interested. I have modified other things in the script e.g. updated the python functions to the modern ones e.g.&amp;nbsp;arcpy.Clip_management() &amp;gt;&amp;nbsp;arcpy.management.Clip()&lt;/P&gt;&lt;P&gt;Anything that is commented CHANGED has been update.&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;</description>
      <pubDate>Thu, 08 May 2025 01:06:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/update-data-extract-task-clip-and-ship-for/m-p/1612658#M27573</guid>
      <dc:creator>BryanP</dc:creator>
      <dc:date>2025-05-08T01:06:51Z</dc:date>
    </item>
  </channel>
</rss>

