How to script Image Service Publication with a cache?

113
1
Jump to solution
a month ago
Matthew_Williams
New Contributor III

Is there a way to publish an image service via python with a cache? 

I've got arcpy.CreateImageSDDraft working okay for the non-cached services, but is there a way to specify levels and compression format etc? We also need to define a caching extent.

All this is possible in the ArcPro and ArcMap image service publication dialog but I can't seem to find how to do this pythonically. 

0 Kudos
1 Solution

Accepted Solutions
IhabHassan
Esri Contributor

Hi @Matthew_Williams 

I think managing cache can take place after publishing the service, which means that you first publish the service as non-cached then use GP tools to create the cache according to your needs.
This doco page here provides more details.

https://pro.arcgis.com/en/pro-app/latest/tool-reference/server/manage-map-server-cache-tiles.htm

 

Regards
Ihab

View solution in original post

1 Reply
IhabHassan
Esri Contributor

Hi @Matthew_Williams 

I think managing cache can take place after publishing the service, which means that you first publish the service as non-cached then use GP tools to create the cache according to your needs.
This doco page here provides more details.

https://pro.arcgis.com/en/pro-app/latest/tool-reference/server/manage-map-server-cache-tiles.htm

 

Regards
Ihab

View solution in original post