Convert OSM to GPKG

Turn OSM files into GeoPackage. A GeoPackage with one layer of the features and their attributes, in the source's coordinate system.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop OSM files on the dialor turn it to pick what to do

OpenStreetMap data as one GeoPackage layer.Nodes, ways and relations become features with their attributes, in the source's coordinate system.

  1. What you get

    One GPKG file with a single layer of features. Tagged nodes become points. Ways become lines, or polygons when they are closed and tagged as areas.

    Route and multipolygon relations become multilines and multipolygons. The coordinate system of the OSM file is kept.

  2. How tags are stored

    Common tags such as name, highway and building become columns. All other tags are kept as JSON in other_tags, so they stay in the file.

    Lists and nested values become JSON text.

  3. What it leaves behind

    Untagged nodes are dropped. Relations other than route and multipolygon relations are dropped too. Versions and authors are not kept.

    If the source has several layers, they are joined into one. A layer column names where each feature came from.

    For other formats, see every OSM conversion. To see what else GPKG can come from, see every GPKG conversion.

OSM and GPKG.What each format is.

The formats

From · OSM

OpenStreetMap Data

OpenStreetMap nodes, ways and relations with their tags, as .osm XML or the smaller .osm.pbf.

Extensions
.osm .osm.pbf
MIME type
application/vnd.openstreetmap.data+xml
Kind
Text and data
To · GPKG

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

In your code.The same OSM to GPKG conversion through the API, for your app or your agent.

terminal
$ cv convert report.osm report.gpkg
$ cv convert report.osm report.gpkg

Questions.What people ask about OSM to GPKG.

01OF 04

Yes. Common tags such as name, highway and building get their own columns. The rest are kept as JSON in other_tags.

Route and multipolygon relations are converted, to multilines and multipolygons. Other relations are dropped.

They are joined into one layer. The layer column tells you which layer each feature came from.

No. Versions and authors are dropped.

More conversions.Other ways in and out of OSM and GPKG.