"Unimplemented type: 3"
bean-fidhleir opened this issue · 11 comments
My tiles are all from the USA.mbtiles subset. The current problem I'm seeing is the apparently old (complained-about in 2015) "Unimplemented type: 3" It can find .pbfs at zoom 2 that it can't find at, e.g., zoom 14. At z2, my GETs appear to succeed: It fetches
- 2/2/3.pbf (no error),
- 2/1/3 (no error),
- 2/1/2 (gets the error),
- 2/2/2 (no error),
- 2/2/3 (gets the error),
- 2/3/2 (gets the error),
- 1/1/1 (no error),
- 1/0/1 (error), and
- 0/0/0 (error).
No map fragments appear, even though it only complains about some of the .pbfs.
@bean-fidhleir Where did you download the USA.mbtiles file?
I'm fairly sure I got it from https://openmaptiles.org, though for some unknown reason I can't now find the file again.
Disappointingly, the only tiles I've been able successfully to serve locally have been those from the "countries" demo. All my other efforts have so far failed.
You can try this one:
https://openmaptiles.com/downloads/tileset/osm/north-america/us/
Anyway, this is issue doesn't seem to be related to this repository, so I am closing. If you think this USA mbtiles is corrupted, you can open an issue at https://github.com/openmaptiles/openmaptiles or (better in this case) write us an email to info@klokantech.com. If you think this issue is related to the server you are using for serving pbfs, you can open an issue at the server's repository.
do you have the hash for the united-states-of-america.mbtiles file? That was its original name, or maybe it used underscores rather than dashes--I renamed it because I couldn't see the point of repeatedly typing that long string. The file was listed as being freely downloadable because the bits were a year old (I did the download just a month or two ago), but I can't now find it on the site. It took an entire day to download because my link is barely better than dialup, so you'll understand why I don't want to download it again if there's nothing wrong with the copy I already have.
@bean-fidhleir Please, could you paste here the metadata from your MBTiles?
$ sqlite3 united-states-of-america.mbtiles "select * from metadata;"
MD5 for the USA file of version 3.3:
80b4a9f7e6e8b2e50b89affd168e73e8 united_states_of_america.mbtiles
Thanks for the hash, Martin. It checks out.
The metadata is:
5:36:23 Sat, 19 Aug [momcat:root]/Maptiles> sqlite3 USA.mbtiles
SQLite version 3.17.0 2017-02-13 16:02:40
Enter ".help" for usage hints.
sqlite> select * from metadata ;
mtime|1481539609137
scheme|tms
format|pbf
maskLevel|8
json|{"vector_layers":[{"id":"water","minzoom":0,"maxzoom":14,"fields":{"class":"String"}},{"id":"waterway","minzoom":0,"maxzoom":14,"fields":{"name":"String","class":"String"}},{"id":"landcover","minzoom":0,"maxzoom":14,"fields":{"class":"String","subclass":"String"}},{"id":"landuse","minzoom":0,"maxzoom":14,"fields":{"class":"String"}},{"id":"park","minzoom":0,"maxzoom":14,"fields":{"class":"String"}},{"id":"boundary","minzoom":0,"maxzoom":14,"fields":{"admin_level":"Number"}},{"id":"aeroway","minzoom":0,"maxzoom":14,"fields":{"class":"String"}},{"id":"transportation","minzoom":0,"maxzoom":14,"fields":{"class":"String","oneway":"Number","ramp":"Number","brunnel":"String","service":"String"}},{"id":"building","minzoom":0,"maxzoom":14,"fields":{"render_height":"Number","render_min_height":"Number"}},{"id":"water_name","minzoom":0,"maxzoom":14,"fields":{"name":"String","name_en":"String","class":"String"}},{"id":"transportation_name","minzoom":0,"maxzoom":14,"fields":{"name":"String","ref":"String","ref_length":"Number","class":"String"}},{"id":"place","minzoom":0,"maxzoom":14,"fields":{"name":"String","name_en":"String","class":"String","rank":"Number","capital":"Number"}},{"id":"housenumber","minzoom":0,"maxzoom":14,"fields":{"housenumber":"String"}},{"id":"poi","minzoom":0,"maxzoom":14,"fields":{"name":"String","name_en":"String","class":"String","subclass":"String","rank":"Number"}}]}
attribution|© OpenMapTiles © OpenStreetMap contributors
description|Extract from http://openmaptiles.org
basename|united_states_of_america.mbtiles
minzoom|0
maxzoom|14
id|openmaptiles
center|-95.5371,36.6658,10
name|OpenMapTiles
bounds|-125.3321,23.8991,-65.7421,49.4325
version|3.3
filesize|6287306752
type|baselayer
sqlite>
If I'm doing something unusual that's preventing me from serving the tiles, then someone else would have to point it out to me because I'm not seeing it.
The server is my own development server-of-all-work, running FreeBSD 10.3R, the mamaboard a Supermicro A1SRM-2558F with 16G and a 3-way ZFS mirror for data.
It does serve the simple "countries" example just fine, so there's no reason I can think of that would prevent it serving the "real" tiles in one of the other examples, e.g. the "offline" one. But it doesn't, so evidently there's a problem with the "real" tiles, with the styling, with the js code, or with something I'm doing that I don't realise.
@bean-fidhleir Martin tried to download united_states_of_america.mbtiles
v3.3 and serve it with tileserver-gl. It worked.
Anyway, this issue is not related to this repository, as I wrote few comments earlier.
I appreciate the confirmation that the bits are indeed servable, Jirik. That narrows it down greatly.