I have been using ArcGIS Pro to create vector tile caches for some time. A python script is copy/pasted to run the "create vector tile cache" for different subject areas.
I have not changed the "map" I use to create the tile cache, but this week different feature not longer are being output into the cache.
I have a roads layer and have different symbology based on road class....and also have alternative symbols based on scale. This is all in one layer. Now many of the features do not display as you zoom out. It's almost as if the alternate symbols by scale isn't working....but it is for some classes of roads.
So, I split the layer into 3 layer (copy/paste) and remove the alternate symbols by scale and added a display scale to the layer. This still does not work.
Just some notes...I was running v3.1 and upgraded to 3.1.1...so I uninstalled and reinstalled 3.1 and got the same results.
What has broken???? My hunch is a data problem, but ran the isvalid command in SQL Server and all is fine. Note, the layers are native SQL Server spatial layers, NOT SDE.
This is the "after" image where the ramp not longer display. The local roads (while fill) also disappear after zooming out a little more when they change to a single line. This is from a cache this week.
This is the "before" image where the ramps are displaying. This is from a cache I built in early march.
Command in Python (varaibles are set earlier) and this does NOT error:
arcpy.management.CreateVectorTilePackage(in_map=Input_Map, output_file=basemap_vtpk, service_type="ONLINE", tiling_scheme="", tile_structure="INDEXED", min_cached_scale=9244648.868618, max_cached_scale=564.248588, index_polygons="", summary="", tags="")
Thanks!
Solved! Go to Solution.
OK, I believe this to be an ArcGIS Pro 3.x bug. If a line symbol has multiple layers and one of the layers is turned off, that feature does not render in the output tile cache (OR, the symbol layer turned off is white, and does render, but since it's white, it is not visible on a white background... I did not test this possibility).
Once I delete the disabled symbol layer, the vector tile cache output rendered properly.
OK, I believe this to be an ArcGIS Pro 3.x bug. If a line symbol has multiple layers and one of the layers is turned off, that feature does not render in the output tile cache (OR, the symbol layer turned off is white, and does render, but since it's white, it is not visible on a white background... I did not test this possibility).
Once I delete the disabled symbol layer, the vector tile cache output rendered properly.