What is the best workflow to publish a compact cache v2 with Pro to ArcGIS Server to create a WMTS service without duplicating the cache in the ArcGIS Server arcgiscache directory?
For example we have a compact cache v2 in a directory on the ArcGIS Server machine registered as a data directory -
E:\data\
\MyCacheData\
\_alllayers\
\conf.cdi
\conf.xml
Using Pro 3.5 on the same machine in catalog view we run share as a web layer directly on the compact cache:
Service Name: MyCacheData
Use existing cache: Configuration > Image Service Properties > Layer Drawing > Using an existing cache
We get an error saying an existing cache named MyCacheData was not found.
I tried registering the compact cache parent folder in ArcGIS Server as a cache directory but that didn't seem to help.
I usually just generate the vtpk file in Pro, upload that directly to the Portal, then publish it out as a service. I'm pretty sure that should only keep one copy of the data around.
This is a raster compact cache not a vector tile package.
First you have to define anther cache directory that point to the current location of your cache.
Then when you publish with the correct name you have a radio of using existing cache. When you select it should say if it recognize your cache.
Everything is based on the same names and location.
A good way to get it right is to publish a small raster and ask the server to build the cache.
Then you understand exactly the way it build.
Can you elaborate on the steps to do this?
“First you have to define anther cache directory that point to the current location of your cache.”
I tried registering the compact cache parent directory as a cache directory in ArcGIS Server using ArcGIS Server manager if that’s what you mean.
Yes.
If you do not want to copy the cache to the default cache directory then you need to register other directory that will contain the cache.
Again, after you register the directory, publish a small raster to it (you have an option to choose cache location when you publish) just to see the dir/file structure.
Have fun