Select to view content in your preferred language

Copy Raster Clip Setting parameter?

581
3
09-19-2023 08:14 AM
Labels (2)
InvenergyGIS_User
New Contributor II

I've been looking into creating a tool using the ArcGIS API for Python. I am trying to use the Copy Raster function to extract by mask based off Esri Documentation. Does anybody know what exactly is supposed to be entered into the 'clip_setting' parameter? Documentation doesn't say much other than a string. I have a polygon boundary I wanted to use to clip.

InvenergyGIS_User_0-1695136248831.png

 

0 Kudos
3 Replies
David_McRitchie
Esri Contributor

Hey,

I came across the same functionality within the REST API and the documentation provides a more useful example. Hopefully this helps steer this in the right direction.

Many thanks,

David

Esri UK -Technical Support Analyst
InvenergyGIS_User
New Contributor II

Thank you!

0 Kudos
InvenergyGIS_User
New Contributor II

Thanks for that link. I'm still getting tripped up on the formatting because the API requires a string, when the REST API requires a JSON. I've been troubleshooting this but am getting stumped.

clip_setting = "extent='-8013156.87983135 5096812.30094792 -8010362.15091558 5099064.80462686"

 

Any thoughts? 

0 Kudos