Skip to main content
19 votes
Accepted

Seeking tool for creating Vector MBTiles

POSTGIS now supports outputting vector tiles as endpoint to a Query. https://postgis.net/docs/ST_AsMVT.html I honestly don't recommend this approach because currently that's just geometry and no ...
Geospatial Engineer's user avatar
7 votes

Vector tile formats -- vector MBTiles and MVF

See https://github.com/osm2vectortiles/osm2vectortiles/issues/467 . MBTiles is a container (roughly, a SQLite database). It's normally used to hold PNGs or JPGs, and that's all the specification ...
Mohan's user avatar
  • 401
7 votes

OSM offline tiles -- mbtiles in openlayers

The OSM2VectorTiles link you mentioned offers a download of VECTOR tiles for OpenStreetMap. There are no RASTER .png inside the MBTiles, instead, there are ProtoBuf (PBF) tiles in. This is MBTiles ...
MapTiler's user avatar
  • 1,621
7 votes
Accepted

Convert .tif to .mbtiles using python/GDAL

There are few methods to do this: You can try rio-mbtiles or gdal2mbtiles to write your input raster directly into mbtiles. GDAL library originaly provides gdal2tiles.py script to generate ...
Dmitriy Litvinov's user avatar
7 votes
Accepted

GDAL .tif to MBtiles not creating all zoom levels

As already mentioned in a comment, the GDAL MBTiles driver does not directly allow specifying which zoom levels are created. It creates at the highest zoom level matching the resolution of your input ...
Houska's user avatar
  • 8,196
6 votes

Self-hosting Mapbox vector tiles

https://github.com/osm2vectortiles/tileserver-gl-light is a lot easier to use than the main solutions mentioned -- no fiddling with JSON files needed. You just run it with tileserver-gl-light ...
Mohan's user avatar
  • 401
6 votes

Showing offline map downloaded from openmaptiles.com with OpenLayers?

First, the .mbtiles files are not served directly to the browser. You'll need a WMS server that understands mbtiles format like Geoserver, which is made by Boundless, who is a major contributor to ...
onwsk8r's user avatar
  • 221
5 votes

OSM offline tiles -- mbtiles in openlayers

It is possible. And easy: Download MBUtil. Unzip the downloaded folder (mbutil-master) Rename the file mb-util to mb-util.py Put your .mbtiles files into the mbutil-master folder Open your command ...
BritishSteel's user avatar
  • 6,647
5 votes
Accepted

Generate own XYZ Tile (MBTiles) - which URL?

Building on @IvanSanchez's comment, to get this to work in qgis2web, you'll have to get the contents out of the MBTiles file. Unzip the MBTiles into a directory on your website, retaining the XYZ ...
Tom Chadwin's user avatar
  • 5,862
5 votes
Accepted

How can I create WebP MBTiles?

The Generate XYZ Tiles (MBTiles) tool uses GDAL to generate the output. The GDAL MBTiles driver documentation states it only supports PNG and JPG output, so may only support <= version 1.2 of the ...
user2856's user avatar
  • 67.1k
4 votes

QTiles to generate MBTILES , pictures cutted off

The reason for this is that QTiles renders each tile in isolation, which is why you're seeing the labels for your mountains getting clipped at the tile edges. The usual way around this is Metatiles. ...
Steven Kay's user avatar
  • 20.5k
4 votes

Vector tiles to MBTiles

MBTiles is a fairly generic tile-based packaging format which is agnostic about containing either vector data or raster data. In TileMill, does the exported MBTile contain vector data or just ...
Steve Bennett's user avatar
4 votes
Accepted

Building georeferenced GeoTIFF from mbtiles automatically?

You should use something like: gdal_translate -of GTiff zoom13.mbtiles export.tiff The reason for the -of GTiff part is that the default output is TIFF, with external georeferencing, rather than ...
BradHards's user avatar
  • 12.9k
4 votes
Accepted

export WMTS tiles as MBTiles with reprojection

I've been able to get this to work using MapProxy. MapProxy is a powerful tool for cases like this, because it allows you to define everything through a configuration file instead of having to click ...
theDmi's user avatar
  • 308
4 votes

Self-hosting Mapbox vector tiles

Every answer on this page runs a server for responding to tile requests. It's easy, cheap, and fast to host vector map tiles statically on a service like AWS S3. Maybe it would be hard to do this for ...
Kyle Barron's user avatar
4 votes

What is the best way to host mbtiles?

7 years later, there are now other formats similar to MBtiles (i.e. single-file, supporting raster & tile, GIS, leaflet...) that are "cloud-optimized": Cloud-optimised Geo-Tiff (2018) (...
eddygeek's user avatar
  • 165
4 votes
Accepted

Where is street level data stored in mbtiles files?

mbtiles is a picture of the roads. Its a collection of PNG (or sometimes JPEG) images. That is what get stored in the tiles table, at different scales (known as zoom levels). There is a vector ...
BradHards's user avatar
  • 12.9k
4 votes

Alternative to Tippecanoe for generating Mapbox vector tiles on command-line

Tippecanoe is designed for lines and polygons as well. Here's a recommended starting point for representing polygons at all zoom levels, with one property you want to aggregate at low (zoomed-out) ...
Ryan Baumann's user avatar
4 votes

Seeking tool for creating Vector MBTiles

Use Tippecanoe https://github.com/mapbox/tippecanoe. It accepts geojson and outputs mbtiles. you can serve mbtiles using simple PHP script also. You can use https://github.com/klokantech/tileserver-...
Sanket Sardesai's user avatar
4 votes

Seeking tool for creating Vector MBTiles

Just adding this as an addendum to the accepted answer: It looks like ST_AsMVT (https://postgis.net/docs/ST_AsMVT.html) actually does support outputting more than just geometries - maybe that's new, ...
spatialbits's user avatar
4 votes

Seeking tool for creating Vector MBTiles

Mapbox Vector Tiles from PostGIS What is the best tool to generate vector mbtile tiles? In 2021 there are several lightweight options to serve vector tiles from PostGIS: dirt tegola Postile martin �...
StefanBrand_EOX's user avatar
4 votes
Accepted

QGIS atlas export as image with different page sizes / same dpi

Solved offline. According to PyQGIS documentation, the order of precedence in interpreting layout image export settings is Clip to contents > Specified image size > Specified dpi. Therefore when ...
Houska's user avatar
  • 8,196
4 votes

Way to analyze size of mbtiles file or pg database to find largest objects to optimize final size

No, not without a lot of effort. The objects themselves are encoded as binary data for each map tile and their total contributing size to the file would include counting their representations on ...
bugmenot123's user avatar
  • 10.9k
4 votes

Best way to serve vector tiles from data that changes frequently?

I use pg_tileserver to serve tiles directly from the database it is very performant when you use dots/points in my experience. Now with the mvt_postgis extension which creates vector tiles directly in ...
Stephan's user avatar
  • 161
4 votes
Accepted

Generating high resolution MBTiles in QGIS

Finally I found a solution: I used Generate XYZ tiles (Directory) to generate 512x512, 192DPI tiles I added metadata.json file to generated directory I used mbutil library to generate .mbtiles file ...
Łukasz Stempek's user avatar
3 votes

Self-hosting Mapbox vector tiles

Super later, but now GeoServer serves pbf's (vector tile format)
Bwyss's user avatar
  • 622
3 votes

Convert .tif to .mbtiles using python/GDAL

Gdal_translate is all you need and usage is documented in http://www.gdal.org/frmt_mbtiles.html. However, you need GDAL version that is compiled with MBTiles and SQlite as MBTiles depends on that. ...
user30184's user avatar
  • 67.3k
3 votes
Accepted

tippocanoe feature filter not working

Just found out that the first attribute in the filter has to be the layer name where it should get applied to. If you don't define any layer name, the filename without the dot is used as layer name. ...
geraldo's user avatar
  • 960
3 votes

QGIS Project to MBTILES / SLIPPY MAPS

The "tile_writer" python application by Alexander Hajnal works very well, at least up to QGIS version 2.18. It does not cut labels and is fast compared to QTiles: http://alephnull.net/software/gis/...
Brian Holmes's user avatar
3 votes

QGIS - mbtiles export in core functionality?

it is part of the core 3x version at least you simply right click save as MBTILES or it's also available via Raster Menu, Conversion, Translate. It's using GDAL_Translate you can see the commands it'...
GeospatialInformationTech's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible