AnsweredAssumed Answered

TileCache for tile cache folder

Question asked by norbert.thoden on Aug 13, 2018
Latest reply on Mar 20, 2019 by LDanzinger-esristaff


I have to transfer a couple of maps to a laptop without access to the geoserver.

Therefore i would like copy the arcgisserver cache of a MapService and read the date using TileCache.

(Using the url of the geoserver instead of the local file path works fine.)


Doc: The TileCache is persisted as either a tile cache folder or a tile package (*.TPK) file on the device's file system.


QString tiledBaseMapLayer = QLatin1String(".....arcgisServerCache/Guez_Topo_32632_guez_topo_32632/Guez Topographic");


Esri::ArcGISRuntime::TileCache *tpkCache = new Esri::ArcGISRuntime::TileCache(tiledBaseMapLayer, this);

Esri::ArcGISRuntime::ArcGISTiledLayer *tiledLayer = new Esri::ArcGISRuntime::ArcGISTiledLayer(tpkCache, this);


Unfortunately i get

loadError: Esri::ArcGISRuntime::Error: code=14, domain=0, extendedErrorType=-1, message='File not found', additionalMessage=''


The directory looks like this:


./Guez Topographic
./Guez Topographic/conf.cdi
./Guez Topographic/
./Guez Topographic/Conf.xml
./Guez Topographic/Status.gdb
./Guez Topographic/Status.gdb/a00000001.gdbindexes
./Guez Topographic/Status.gdb/a00000001.gdbtable
./Guez Topographic/Status.gdb/a00000001.gdbtablx
./Guez Topographic/Status.gdb/a00000001.TablesByName.atx


../Guez Topographic/_alllayers
./Guez Topographic/_alllayers/L00
./Guez Topographic/_alllayers/L00/R0080C0100.bundle
./Guez Topographic/_alllayers/L01
./Guez Topographic/_alllayers/L01/R0180C0280.bundle
./Guez Topographic/_alllayers/L02


Is that a possible way? (copy directory and consume using TileCache and ArcGISTiledLayer?


On-Demand approaches are already considered....


Thx in advance!!!