Hello,
I'm trying to clip a small section of ESRI Land Cover layer using a python script I'm developing, but I keep encountering a Error 99999 message. I have reduced the extent to the required size and that still doesn't work. It works fine when I run it from the Geoprocessing tools. Code snippet is below and I'm using ArcGIS Pro 3.5.3. Someone suggested REST services don't work in Pro but I've tried the non-REST link also and still no good. Any ideas where I might be going wrong? Thank you!!
Tom
transformed_extents = '-420353.6209754332 6857701.481562025 -394409.69783226284 6881148.42889701' \
'PROJCS["WGS_1984_Web_Mercator_Auxiliary_Sphere",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],' \
'PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator_Auxiliary_Sphere"],PARAMETER["False_Easting",0.0],' \
'PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",0.0],PARAMETER["Standard_Parallel_1",0.0],PARAMETER["Auxiliary_Sphere_Type",0.0],UNIT["Meter",1.0]]'
temp_output_raster1 = os.path.join(ScratchFolder, "step_2_8_temp_raster1.tif")
with arcpy.EnvManager(extent=transformed_extent):
arcpy.Clip_management(input_raster, transformed_extents, temp_output_raster1, maintain_clipping_extent="MAINTAIN_EXTENT")