Select to view content in your preferred language

How to update a hosted Map Image Layer via script in ArcGIS Enterprise?

240
3
Jump to solution
3 weeks ago
MaikeObenhaus
New Contributor II

I have published a layer from ArcGIS Pro to ArcGIS Enterprise as a hosted Map Image Layer. I would like to regularly update this layer using python.

For hosted Feature Layer I have found scripting examples, which work. However, these overwrite the Service Definition. Since Map Image Layers don't have Service Definitions, how is it possible to update these via script?

0 Kudos
1 Solution

Accepted Solutions
MaikeObenhaus
New Contributor II
0 Kudos
3 Replies
JakeSkinner
Esri Esteemed Contributor

Hi @MaikeObenhaus,

Are you able to register the geodatabase/folder where the data resides with ArcGIS Server?  If you can, you can publish as a referenced Map Image, and the service will automatically update.

JakeSkinner_0-1717502364929.png

 

0 Kudos
MaikeObenhaus
New Contributor II

Hi @JakeSkinner, thanks for the reply! I tried referencing the data from our Oracle database, as well as publishing and hosting as a Feature, but in both cases the performance was too slow. So currently my only option is hosting as a Map Image Layer and regularly updating the data.

0 Kudos
MaikeObenhaus
New Contributor II

I ended up using arcpy. The following site helped me: https://pro.arcgis.com/en/pro-app/latest/arcpy/sharing/mapimagesharingdraft-class.htm

 

0 Kudos