You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an application where users can add new routes to map. Application calculates each time popularity of routes using complex post filters and regenerates mbtiles. I generate temp mbtiles only for the area of newly added route (bbox). In next step I remove routes within this bbox area from live mbtiles with tile-join -j '{some-long-filer-string}'. After that I merge live mbtiles with temp mbtiles, so I get updated live mbtiles. Visualization works just great! (The idea was taken from this answer: #694 (comment))
The problem:
Each time I run these steps, with the same GeoJSON data, I get increase in mbtiles file size due to appending command line to mbtiles meta generator_options field.
The solution?
To have an option to remove that meta property (since it is not needed according to Mapbox). I have checked the Docs and went briefly through tile-join implementation, please correct me if I'm wrong, but I think this is not possible at the moment?
Thanks for the report. I should probably limit the maximum size of the generator_options field, since it seems to do more harm than good to retain this much information about how the tileset was generated.
Limiting it would be fine. Also, maybe just populating it with the last command line instead of appending each command line would be fine.
Thank you for your reply!
What I do
I have an application where users can add new routes to map. Application calculates each time popularity of routes using complex post filters and regenerates mbtiles. I generate temp mbtiles only for the area of newly added route (bbox). In next step I remove routes within this bbox area from live mbtiles with tile-join -j '{some-long-filer-string}'. After that I merge live mbtiles with temp mbtiles, so I get updated live mbtiles. Visualization works just great! (The idea was taken from this answer: #694 (comment))
The problem:
Each time I run these steps, with the same GeoJSON data, I get increase in mbtiles file size due to appending command line to mbtiles meta generator_options field.
The solution?
To have an option to remove that meta property (since it is not needed according to Mapbox). I have checked the Docs and went briefly through tile-join implementation, please correct me if I'm wrong, but I think this is not possible at the moment?
Test tileJSON file attached
v3.json.txt
The text was updated successfully, but these errors were encountered: