Automating a Vector Tile Package with Python but updating the extent on Pro

251
1
06-10-2021 12:50 PM
Labels (1)
AndrewSauerwin
New Contributor II

Hello all,

I am working to replace the use of MMPK files to use Vector Tile Packages in Survey 123. This seems to work as we would like. There is an exception though for "Automation".

We are seeking to generate VTPK files based on the extent of various Feeder we are querying on. I know there isn't an "Extent" to set as a parameter in the Python function for this. So my workaround was to set the extent and clip the layers by the custom extent.

I made a change to the "Map" layer properties on the "Extent" tab, then I selected the "Use a custom extent" and selected the layer. The I updated the "Clip Layers" tab to use "Clip to a custom extent".

What I am seeking to have answered is whether there is a way to programmatically update the properties for this extent upon each process? VIA Python

My testing in Pro doesn't seem to capture the change of extent when the layer we are selecting the extent by is selected.

Any thoughts?

0 Kudos
1 Reply
StefanUseldinger
Occasional Contributor

I am also seeing this behavior in ArcGIS Pro. Why is the "Clip Layers" configuration ignored when creating a vector tile package?

0 Kudos