Compression for Vector Tile Package VTPK

4521
10
12-07-2017 06:32 PM
NathanMellor
Regular Contributor

VTPKs tend to be unforgiving if you try to modify them

There is a tool - Extract package - that will extract the tiles and other files.  

There is no way I see of reversing the process. Simply zipping it back up (uncompressed) will not do, because it doesn't want the tiles in exploded format

I found this link for packing files in your compactV2.  

GitHub - Esri/raster-tiles-compactcache: Compact Cache V2 is used by ArcGIS to store raster tiles. T... 

But is it meant to work on Vector tiles?  

The root.json of a vtpk will say:

"resourceInfo":{"styleVersion":8,"tileCompression":"gzip","cacheInfo":{"storageInfo":{"packetSize":128,"storageFormat":"compactV2"}}}}

It mentions "compactV2" which pointed me to this code. 

But some other things cause me to doubt. 

1. The set of files becomes 50 times bigger. Not very compact. 

2. ArcGIS Pro and ArcGISOnline cannot find any of the tiles in the new vtpk. 

I may have good reasons to use scripts to repackage tiles in vtpks. The vtpks often take days to weeks to generate and I might want to avoid redoing them just to get smaller areas. 

0 Kudos
10 Replies
JordanCarmona
Occasional Contributor

What gives you pause about your current workflow? This is something that we are just now getting into. I am designing the automation on our end to inject additional styling onto certain layers with python. I would be interested to understand why you are reconsidering your current workflow.

 

I’m also interested in how you’re generating glyphs; it is not something we are considering at this time, but I’m always fascinated with learning something new.

0 Kudos