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
{{ message }}
Repository navigation
What is the difference between *.mvt and *.vector.pbf formats? #69
But, this page said the vector tile format is *.mvt files.
The filename extension for Vector Tile files SHOULD be mvt. For example, a file might be named vector.mvt.
3.How can I parse the *.vector.pbf files?
So, I'm confused about them...
I want to show own vector map data in Android devices by Mapbox, the other formats files needs to be converted to *.mvt or *.vector.pbffiles?
Reacted by jingsam, kafuak, S.M.Mousavi, Vlad Herasymenko, Zac and geshl
We have not yet updated our service to use and serve vector tile 2 specification tiles, we are currently serving just v1 tiles. Our intent is to do so soon, but we want to make sure that all our endpoints can serve them properly at the same time so this is a big upgrade for us. We released the specification prior to doing our upgrade. Once we release the new specification we will be supporting the .mvt extension and encouraging people to use it. This will change the documentation pages you have linked.
vector.pbf was the legacy way to represent vector tiles as an extension.
After our upgrade the .vector.pbf extension will still work and will serve v2 tiles going forward from Mapbox.
If you have further questions feel free to hit up Mapbox Support.
Mapbox tilesets (streets & terrain, current and previous versions) are now v2 compliant, as well as any custom datasets uploaded to Mapbox after mid-April. Any existing custom tilesets (uploaded before mid-April) can be converted by re-uploading as new tilesets.
The .vector.pbf and .mvt file extensions both work currently in order to preserve many existing applications - but any of the above tilesets served as .vector.pbf will be v2 compliant. This is a bit confusing for now - apologies! Mapbox GL JS and GL Native continue to request .vector.pbf until that change is made in those libraries separately.
Also, please point any further Mapbox-platform-specific questions towards support if you can!
@mapsam Forgive me for bothering you in this thread on this, but I thought it best to maintain continuity.
Three codecs I've tried to decode that tile with have failed. Two are my own, one is 3rd party. Here's the output from the Python library mapbox-vector-tile:
Activity
jingsam commentedon Mar 16, 2016
It is SHOULD, not MUST.
mvtandvector.pbfhave the same format, just with different names.flippmoke commentedon Mar 16, 2016
@zhangzhuowh
.mvtextension and encouraging people to use it. This will change the documentation pages you have linked.vector.pbfwas the legacy way to represent vector tiles as an extension..vector.pbfextension will still work and will serve v2 tiles going forward from Mapbox.If you have further questions feel free to hit up Mapbox Support.
fosskers commentedon Jun 13, 2016
@flippmoke Has that happened yet?
mapsam commentedon Jun 13, 2016
@fosskers it has!
Mapbox tilesets (streets & terrain, current and previous versions) are now v2 compliant, as well as any custom datasets uploaded to Mapbox after mid-April. Any existing custom tilesets (uploaded before mid-April) can be converted by re-uploading as new tilesets.
The
.vector.pbfand.mvtfile extensions both work currently in order to preserve many existing applications - but any of the above tilesets served as.vector.pbfwill be v2 compliant. This is a bit confusing for now - apologies! Mapbox GL JS and GL Native continue to request.vector.pbfuntil that change is made in those libraries separately.Also, please point any further Mapbox-platform-specific questions towards support if you can!
fosskers commentedon Jun 13, 2016
Thanks, that's good to hear. I'm trying to find a v2
.mvtto test my decoder on.mapsam commentedon Jun 13, 2016
@fosskers the above will get you a single tile that is v2 compliant. You'll just need a Mapbox access token to get that.
fosskers commentedon Jun 13, 2016
Grabbed it, thanks!
mapsam commentedon Jun 13, 2016
Ah, @fosskers worth noting that you can increase the mapbox-streets tileset to
v7for the most recent geometries.fosskers commentedon Jun 13, 2016
Corrected, thanks.
fosskers commentedon Jun 14, 2016
@mapsam Forgive me for bothering you in this thread on this, but I thought it best to maintain continuity.
Three codecs I've tried to decode that tile with have failed. Two are my own, one is 3rd party. Here's the output from the Python library
mapbox-vector-tile:flippmoke commentedon Jun 14, 2016
@fosskers is the tile compressed in gzip format? I node mapnik we automatically detect and ungzip tiles (even if they do not end in
.mvt.gz)fosskers commentedon Jun 15, 2016
Success! It was compressed. Everything's golden now, thanks much.
mapsam commentedon Jun 15, 2016
\o/