Select to view content in your preferred language

Overwrite Image Service With ArcGIS API For Python

98
0
2 weeks ago
Labels (1)
cja
by
New Contributor

I have an image service in 11.4 that I update twice a week. The source is a mosaic dataset in a registered geodatabase. I'm hoping to automate the publishing side of it, but can't seem to get anything to work using the ArcGIS API For Python.

I found this article from 1 year ago which mentions you can't publish image services using ArcPy any more (https://support.esri.com/en-us/knowledge-base/problem-using-arcpy-to-publish-image-services-is-no-lo...), but there's no mention of the ArcGIS API For Python. When I look at that documentation, it appears there are ways to delete and add rasters. When I follow the sample notebook (see image below) to do so I get an error "AttributeError: 'NoneType' object has no attribute 'delete_image'". Is this because my ImageService is not referencing a group of images (i.e. image_collection), but a single mosaic dataset?

cja_1-1748645641878.png

 

 

0 Kudos
0 Replies