Select to view content in your preferred language

Export Raster - Spatial Reference, Extents, Cell Size

541
4
Jump to solution
10-03-2023 11:46 PM
EricMay1
New Contributor

Hello! I am trying to export a small portion of a large image service and can't seem to find any solutions.

I have been trying to use arcpy.management.CopyRaster and it almost works, but I can't seem to specify a few parameters which are important, namely:

  • Output Spatial Reference
  • Extents
  • Cell Size

It was my understanding that the Copy Raster function is meant to be used in place of the Export Raster Geoprocess, however I can't seem to find any documentation on how to specify these properties (please see image below).

EricMay1_0-1696401512873.png

The only option I'm seeing from the Copy Raster function that might work is the 'transform' parameter but I can't find any examples of how to use it and keep getting errors. Perhaps I am using the wrong function? 

Thank you so much for any help, it is greatly appreciated!

0 Kudos
1 Solution

Accepted Solutions
DanPatterson
MVP Esteemed Contributor

it is fully accessable via python and arcpy, check the help

env—ArcGIS Pro | Documentation

Copy Raster (Data Management)—ArcGIS Pro | Documentation


... sort of retired...

View solution in original post

4 Replies
DanPatterson
MVP Esteemed Contributor

They are in the Environments tab of Copy Raster

copy raster.png


... sort of retired...
EricMay1
New Contributor

Thanks Dan, however maybe I should have made it more clear that I'm trying to do this with Python and the ArcPy library.

0 Kudos
DanPatterson
MVP Esteemed Contributor

it is fully accessable via python and arcpy, check the help

env—ArcGIS Pro | Documentation

Copy Raster (Data Management)—ArcGIS Pro | Documentation


... sort of retired...
EricMay1
New Contributor

Ah, thank you Dan! I see now how to access the environment attributes via Python.

Much appreciated, that solved my issue.

0 Kudos