Select to view content in your preferred language

VTPK Clip

2990
7
03-25-2021 11:21 AM
Status: Open
Labels (1)
WilliamByrne
Occasional Contributor

Enable the ability to clip a vector tile package

7 Comments
ScottBallard

I think this would be an outstanding enhancement. Great idea!

MarkBockenhauer

The Create Mobile Map Package tool can be used to clip vector tile packages.  It has a clip option and you can give it a polygon feature to clip to.  Make sure the polygon feature is not too dense with "vertex"  the more vertex the longer it takes to process.   Once the package is created, you can unzip the mmpk on disk, to get the .vtpk out of it.

MarkBockenhauer_0-1624312519315.png

 

StefanUseldinger

In fact, the custom bbox from the map properties is concerned in the "Create Vector Tile Package" tool. However, the "Clip layers" from the map properties aren't. It would be nice to have also the ability to use the "Clip layers" config to stay consistent here!

cweirpatrickco

@MarkBockenhauerthis worked for one of my target counties. But it hasn't worked since. Now when I generate an mmpk no .vtpk gets generated in the 'commondata' folder for some reason... any ideas as to why?

the AOI poly isn't particularly complex (geometry wise)... I'm confused as to why a .vtpk was generated for the first county but not the others.

MarkBockenhauer

The Create Mobile Map Package tool can be used to clip a vector tile package that you have on disk.  So, you do have a vector tile package on your local file system that you are running through the tool?  correct?

cweirpatrickco

@MarkBockenhauer  awesome, I added a .vtpk from my local to the map frame and then exported to .mmpk and the clipped .vtpk was in the output... Thanks!

After creating the .mmpk, use the "Extract Package" tool to generate the commondata folder.