Select to view content in your preferred language

Create Hosted Imagery Layer with Python in a Notebook

698
2
08-23-2022 08:09 AM
Labels (1)
PaulNolte97
New Contributor

Hey Guys,

I have a Notebook in ArcGis Pro where I create a Raster in .crf Format. This one I can publish manual with the Imagery > Share > Create Hosted Imagery Function to my Arcgis Online. Is there a way to automate the Publishing of my Raster in the Notebook using python? I cant find any function or example in the documentation.

Best regards

Paul

0 Kudos
2 Replies
rachelm
Regular Contributor

Did you check this doc? https://developers.arcgis.com/python/guide/creating-imagery-layers/

 

Are you working with the ArcGIS Online for Imagery License? I have it checked out in my user name in Agol, but in Pro there is no option to share as a hosted imagery layer in the "Imagery" tab.  Did you have to do anything specific to get the functionality?

0 Kudos
KevinDyke
Occasional Contributor

In case anyone else is looking for an answer to this question, you can use the ArcGIS API for Python to publish hosted imagery.

arcgis.raster.utils module | ArcGIS API for Python