Hi all,
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 ExtractData.py found in the following locations:
C:\Program Files\ArcGIS\Pro\Resources\ArcToolBox\Scripts
C:\Program Files\ArcGIS\Server\framework\runtime\ArcGIS\Resources\ArcToolBox\Scripts
Go to the following function:
def clipAndConvert(lyrs, aoi, featureFormat, rasterFormat, coordinateSystem):
...
# Add "annontationlayer" to the line if dataType in ["featurelayer", "rasterlayer"]: e.g.
if dataType in ["featurelayer", "rasterlayer", "annotationlayer"]:
Thank-you! I'd really appreciate it.
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. arcpy.Clip_management() > arcpy.management.Clip()
Anything that is commented CHANGED has been update.
Cheers.