GeoPackage
GeoPackage is an open data format defined by the Open Geospatial Consortium and used by GIS software. A GeoPackage file has the extension .gpkg and is a SQLite database with a custom schema.
The format is able to contain both raster and vector data.[1]
Extensions to the standard do exist. Some have been integrated back into the standard.[2]
Software support
This format is supported in QGIS, gvsig[3], udig[3], geoserver[3], MapServer[3], deegree[3], esri[3], mapinfo[3], fme[3], talend[3], geokettle[3], stetl[3].
GDAL (and thus also ogrinfo, ...) supports GeoPackage, with optional Spatialite support. For more info see the GDAL driver docs.
Obtaining a DB with OSM data
Some processed data providers provide GeoPackage files directly. Note that that page does not list all the formats for all the providers.
Otherwise you can download OSM in another format (for example the native PBF format) and use a tool to convert to GeoPackage.
- ogr2ogr can create a GeoPackage since version 2.2 and supports OSM XML since version 2.4. See the docs.
- Version 3.8.0 substantially improves GeoPackage creation performance.[4]
- Other options may be found at SQLite#Obtaining_a_DB_with_OSM_data (because a GeoPackage is a special case of SQLite) or at Converting map data between formats.
See Also
External Links
- GeoPackage on Wikipedia
- Homepage: https://www.geopackage.org/
- Specification: https://www.opengeospatial.org/standards/geopackage
- Extensions: https://www.geopackage.org/extensions.html