Questions tagged [mbtiles]

MBTiles is a file format for storing map tiles in a single file. It is, technically, a SQLite database. Latest format version as of February 2018 is 1.3.

Tile based web maps are made up of millions of tiles. Imagine loading all of those tiles; it would be inefficient and slow. That’s where MBTiles comes in. The MBTiles specification is an efficient format for storing millions of tiles in a single SQLite database.

SQLite is ideal for serving tiles on the web or displaying directly on mobile devices because it’s used on so many platforms. If you’ve worked with SQL databases before, SQLite should feel very familiar. With SQLite, each database is self-contained and represented as a single .sqlite file. There’s no external setup required. You can copy a .sqlite file from desktop to a mobile device and have all its rows, tables, and indexes ready to be used. It’s a portable, single-file solution for storing and serving web maps.

MBTiles takes advantage of utilities found in SQLite for solving problems like duplicate imagery. Maps that cover large areas of solid color like ocean or empty land can contain thousands of duplicate, redundant tiles.

For more

http://wiki.openstreetmap.org/wiki/MBTiles

https://www.mapbox.com/help/an-open-platform/#mbtiles-in-action

169 questions
1
vote
0 answers

Implement MBTiles to GoogleMaps on Android

I have Android application with GoogleMaps map. I was using TileOverlay where I was using tiles from MapBox. Now I would like to change it and make my application offline available - I created MBTiles using TileMill (MapBox) but I can't find any…
Mary
  • 65
  • 1
  • 9
1
vote
1 answer

create web map layers from multiple mbtiles on multiple servers

I'm using this http://blog.carte-libre.fr/index.php?post/2012/02/12/Serve-all-MBTtile-features-with-PHP-script to create a web map with mbtiles hosted on my server. I want to create selectable layers using several mbtiles (mb1, mb2, mb3) which are…
barryjames
  • 31
  • 1
  • 7
1
vote
1 answer

How-to get "redundant tiles" into MBTiles's sqlight tile view?

At MBTiles Link there is a section: Using views to reference redundant images MBTiles can reduce the amount of space used by these redundant tiles drastically by implementing the tiles table as a view If I have z/x/y folder of png tiles how to i…
jack
  • 1,861
  • 4
  • 31
  • 52
1
vote
1 answer

code for display of mbtiles in android using nutiteq

I am new to android.I have converted map to mbtiles format.Now I need to create a sample application using nutiteq to display mbtiles on mobile.Please explain me step by step by writing code for displaying map. Dont give me links of some existing…
himanshu
  • 41
  • 1
  • 2
  • 11
1
vote
1 answer

Android map app, can't upgrade read-only database from version 0 to 1

I've been trying(for days now) to get an Android map app working. This app has to work offline and im only interested in displaying a small city, after seeing all of my choices and trying them all, it seems that Nutiteq is a great choice,…
maxandonuts
  • 595
  • 7
  • 19
0
votes
0 answers

ERROR create from database, convert PostGIS to MBTiles with ogr2ogr

I am trying to convert data from my PostGIS database into MBTiles format using ogr2ogr. Howewer, when i type the command ogr2ogr -f MBTiles "myfile.mbtiles" PG:"dbname=mybase user=postgres password=postgres host=localhost" I am getting an error…
0
votes
0 answers

ST_AsMVT destination folder in PostGIS

I am creating Mapbox Vector Tile using ST_AsMVT() function in PostgreSQL/PostGIS. I am working in PgAdmin 4. Let's say I executed some simple code WITH mvtgeom AS ( SELECT ST_AsMvtGeom(way, box2d(way)), osm_id, name FROM roads ) SELECT…
0
votes
0 answers

Create MBTiles file from PostGIS database tables

I am trying to create MBTiles files from PostGIS database connection. It should contain all geometry objects in .mbtles file (not only a tileset objects for browser). What is the simpliest way to connect to a PostGIS database and put all the objects…
0
votes
1 answer

Installing felt / tippecanoe

I trying to installing felt /tippecanoe in windows 10. I followed the installation steps but got a problem with "make -j". Error message I get is below. C:\tippecanoe>make -j process_begin: CreateProcess(NULL, uname -s, ...) failed. Makefile:18:…
Er Re
  • 1
  • 2
0
votes
1 answer

Convert mbtile file to OSM XYZ map tiles

I've downloaded .mbtiles files to my computer for offline maps from this link (for research and test purpose, not for commercial use that money has to be paid first): https://data.maptiler.com/downloads/dataset/osm/#0.22/0/0 and converted it using…
0
votes
0 answers

In react-leaflet plotting Mbtiles in map

I am new to map technology and I am using react-leaflet to plot GEOJSON to map. It was all going well but then I m facing load time with massive GeoJSON data, so need to convert GeoJSON to mbtiles. With the help of Tippecanoe I successfully…
Silen
  • 41
  • 1
  • 7
0
votes
1 answer

tilemaker how to host tiles on ubuntu 23.04

Using instructions from tilemaker to host tiles locally on Ubunut 23.04 Created croatia.mbtiles successfully but having problems hosting them. After: sudo apt install sqlite3 libsqlite3-dev ruby ruby-dev sudo gem install sqlite3 cgi glug rack…
watbywbarif
  • 6,487
  • 8
  • 50
  • 64
0
votes
0 answers

How to load a mbtile file with Leaflet in Angular?

I have this proyect with the leaflet library for render a map, with this url works fine https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png but when I put a url with a local mbtile file it doesn't work, what could be wrong ? I need to render a map…
Gerardo Bautista
  • 795
  • 3
  • 11
  • 19
0
votes
0 answers

Offset in tile_row using addProtocol in Maplibre-gl-js

I am developing an application in Apache Cordova that uses vector layers in mbtiles, created with tippecanoe, and I need it to be fully accessible offline. To achieve this, I am using maplibre-gl-js, using addProtocol("custom"), as indicated here I…
0
votes
1 answer

Add new property values to vector tiles layer feature

Im using @mapbox/vector-tile to read VectorTiles from a .mbtiles file. Now, for feature of the tile layers, I need to add a new property value. Currently I have, for example, id: 123, name: "abc" in my properties, and I want to add age: "33". I'm…