I am trying to write a script to build tile caches for a bunch of map services. My issues is that to run arcpy.ManageMapServerCacheTiles_server()
I need to pass a list explicitly stating scales at which to build tiles. Easy enough when the service is using the 'ArcGIS Online / Bing Maps / Google Maps' predefined tiling scheme because I know the exact scale values. But I would like to write this script so that it can be used for any map service, even if those with a custom tiling scheme.
To do this, however, I would need be able to lookup what scale values exist in the services tiling scheme. Is there any way to do this programmatically?