Has anyone got information on how to set the "method" param for AGOL cache creation?
ERROR 000732: Import Tiling Scheme: Dataset ArcGIS Online scheme does not exist or is not supported
Failed to execute (ManageTileCache).
The Python window suggests
Input Tiling Scheme (Optional)
An optional parameter to specify the tiling scheme.
• ArcGIS Online scheme—Use the default ArcGIS Online tiling scheme.
• Import scheme—Import an existing tiling scheme.
• Elevation tiling scheme—Use this tiling scheme for elevation services.
• WGS84 Version 2 tiling scheme—Use this tiling scheme based on WGS84 Version 2.
• WGS84 Version 2 elevation tiling scheme— Use this tiling scheme based on WGS84 Version 2 to build tile cache for elevation data.
but ArcGIS Online Scheme doesn't seem to work. Pro2.7. Any help is appreciated.
Thanks.
folder = "E:\\CITYOFPERTH_IMAGERY\\20201220\\AGOL_CACHE"
mode = "RECREATE_ALL_TILES"
cacheName = "20201220_3857"
dataSource = "E:\\CITYOFPERTH_IMAGERY\\20201220\\20201220_3857.jp2"
method = "ArcGIS Online scheme"
tilingscheme = "#"
scales = "18055.954822;9027.977411;4513.988705;2256.994353;1128.497176;564.248588;282.124294;141.062147;70.5310735"
areaofinterest = "E:\\CITYOFPERTH_IMAGERY\\3857_AGOL_AOI.shp"
maxcellsize = "#"
mincachedscale = "18055.954822"
maxcachedscale = "70.5310735"
arcpy.ManageTileCache_management(
folder, mode, cacheName, dataSource, method, tilingScheme,
scales, areaofinterest, maxcellsize, mincachedscale, maxcachedscale)