-
Notifications
You must be signed in to change notification settings - Fork 240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Empty tile files for zoom 12 #77
Comments
As I can see - the reason it that only the "pois" layer is rendered. Even when I run tilemaker with these config scripts:
What I do wrong? |
@systemed could you assist please? |
Having same issue here... |
It's working fine for me but I'm not using the default config. Let me have a look and see if I can reproduce it. |
It worked with the default config. However, there was a layer (poi) that was missing in the vector_layers array of the json row in the metadata table but was present in the data. How can this happen? |
Apologies, forgot to mention the data I used: I downloaded the latest pbf for Switzerland: Unfortunately, the extract has already been updated again since. In case that should be relevant, I uploaded the pbf from yesterday: https://we.tl/rftpQnTX8W |
The metadata entry isn't parsed by tilemaker at all, it's just passed through to the output in the .mbtiles file. It's just there for clients (well, Mapbox GL) that require it. You can put anything in there you like, it won't affect what happens with the data. Thanks for the Switzerland hint - I'll download that and take a look. @sfkeller, what extract were/are you using? |
I understand, that tilemaker doesn't create the metadata tables content, but in my opinion that's wrong, as there are several entries which are required in the metadata table. See the specification: https://github.com/mapbox/mbtiles-spec/blob/master/1.1/spec.md |
I think you've slightly misunderstood things (...or maybe I have!). tilemaker does write the required values. It writes rows like this to the SQLite
These are not the same as the 'metadata' hash stored in your config file as
If you are not using a Mapbox vector tiles reader then you do not need to put anything in (If there's anything more to add, could I suggest that discussion of this would be best in another issue, and leave this one for the empty z12 tile problem?) |
My comment above was related to @mboos. I'm advising his very promising "Vector Tiles Reader" QGIS plugin (http://plugins.qgis.org/plugins/vector_tiles_reader/ ) and I'm actually testing e.g. with Uster City (Switzerland) using OSMaxx: https://osmaxx.hsr.ch/media/osmaxx/outputfiles/147bebc1-593c-47d4-a958-8c655206ae9e/uster-county_wgs-84_2017-06-11_pbf_full-detail.zip (zipped PBF, 1 MB). Our ultimate goal is to implement an MVT reader which is as compatible as possible with MVT spec as well as with existing MVT generators like tilemaker. I see, that tilemaker just guides some settings (like JSON) through to the respective JSON entry of the mbtiles metadata table. I also realize that JSON field is implementation-specific to Mapbox' use of mbtiles, and this (specificly mapbox/mbtiles-spec#43, mapbox/mbtiles-spec#46 and mapbox/mbtiles-spec#47 ) should be really fixed by Mapbox. (I don't mind splitting this issue/discussion) |
I'll do another issue for the Mapbox JSON field. On the empty z12 tiles, I can't reproduce that in any form. Creating an .mbtiles and looking at the z12 data always results in tiles with data in:
Really happy to try and help debug this but I need a reproducible test case - .osm.pbf, Lua script, json config and command line invocation. |
Several robustness fixes have been added to the master branch. Could people check to see if it resolves this issue? |
When using the default config with just turned off compression tilemaker produce all tile files in the
12
folder with zero size. Look at the screenshot: (Sorry for non-English interface)First red box: 0 bytes, second: 720 files, 40 filders.
Why???
The text was updated successfully, but these errors were encountered: