Converting map data between formats
Jump to navigation
Jump to search
This page lists tools to convert external map data to and from OSM formats.
GDAL/OGR, ogr2ogr and QGIS – the almost every time working solution
The GDAL/OGR library supports several dozen vector file formats. You can use the ogr2ogr command line programme to convert between them. It is also able to read/write PostgreSQL databases (with PostGIS extension).
A common workflow to get OSM data into a different file format using GDAL is
Using the command line programme ogr2ogr:
- Load OSM data into PostgreSQL database using Osm2pgsql or Imposm.
- Convert data using ogr2ogr where ogr2ogr reads from the database and writes to your desired output format.
Using the QGIS (no command line required):
- Open .osm.pbf file in QGIS
- Save in your desired output format.
Formats
Remember, if you are converting map data into OSM to upload it into OpenStreetMap, be sure to follow the guidelines for an Import. |
Specialised formats
This lists only very specific formats, mostly dedicated for a specific import.
File type | Extension | To import into OSM | To export from OSM | Discussion/Comments |
---|---|---|---|---|
AND | ? | and2osm | no | See AND Data |
CIA World Database | .wdb | wdb2osm | no | |
Coastlines | .pgs | perl script | no | See Almien coastlines (PGS) |
LINZ | ? | LINZ | no | |
NKF | ? | Nkf2osm | no | |
Frida | ? | Frida | no | |
TIGER | ?? | ? | ? | See TIGER, most data has been imported |
See also
- For exporting a map as images (PNG, SVG, PDF) please refer to the Rendering page.
- For a much more general overview, see the Export Guide.
- For converting between different OSM file formats (including altering or filtering) see OSM file formats#Conversion between different osm map data formats
- For converting GPS tracks only, see Converting GPS track data between formats