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?
Solved! Go to Solution.
I ended up using arcpy. The following site helped me: https://pro.arcgis.com/en/pro-app/latest/arcpy/sharing/mapimagesharingdraft-class.htm
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.
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.
I ended up using arcpy. The following site helped me: https://pro.arcgis.com/en/pro-app/latest/arcpy/sharing/mapimagesharingdraft-class.htm