Convert GPKG to PMTILES
Turn GPKG files into PMTILES. A PMTiles archive of vector tiles in Web Mercator with one layer named after the file and each feature's attributes as its properties, from zoom 0 to the deepest zoom, at most 14, at which the map spans no more than 64 tiles across.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop GPKG files on the dialor turn it to pick what to do
Map layers as one tile file.Vector tiles for every zoom from 0 to the deepest zoom, in one PMTiles archive.
What you get
One PMTiles file of vector tiles in Web Mercator. It holds one layer, named after the file, and each feature's attributes become its properties.
The tiles run from zoom 0 down to the deepest zoom, at most 14, at which the map spans no more than 64 tiles across.
What changes
Coordinates are rounded to each zoom's tile grid, and shapes are cut at tile edges. A tile over 500 KB is written with less detail or fewer features.
Lists and nested values become JSON text. Features without a geometry are left out.
Layers and coordinates
If the GPKG holds several layers, they are joined into one. A layer column names where each feature came from.
Data that names no coordinate system is taken as WGS 84 when its coordinates fit. When they do not, the conversion stops with
unsupported_elements.For other formats you can start from a GPKG, see every GPKG conversion.
GPKG and PMTILES.What each format is.
The formats
GeoPackage
The OGC GeoPackage, a SQLite database of map layers that QGIS and ArcGIS read and write.
- Extensions
- .gpkg
- MIME type
- application
/geopackage +sqlite3 - Kind
- Text and data
PMTiles
Vector map tiles for every zoom in one PMTiles archive, which a web map reads straight from a file server.
- Extensions
- .pmtiles
- MIME type
- application
/vnd .pmtiles - Kind
- Text and data
In your code.The same GPKG to PMTILES conversion through the API, for your app or your agent.
$ cv convert report.gpkg report.pmtiles$ cv convert report.gpkg report.pmtilesQuestions.What people ask about GPKG to PMTILES.
One. Several layers in the GPKG are joined into it, and a layer column names the layer each feature came from.
Tiles are made from zoom 0 to the deepest zoom, at most 14, at which the map spans no more than 64 tiles across.
Yes. Each feature's attributes become its properties. Lists and nested values become JSON text.
The data names no coordinate system and its coordinates do not fit WGS 84. Data like that cannot be placed on the map.