Converting map data between formats
From OpenStreetMap Wiki
(Redirected from Convert)
This page lists tools to convert external map data to and from OSM formats.
- For Exporting a map as Image, please refer: Rendering
- For general Export guide refer: Export
- For converting between different OSM file formats see OSM file formats#Conversion between different osm map data formats
- For altering or filtering only OSM data please refer: osmosis tool
- For list of all donated imports and general procedure refer: Import
- For converting GPS tracks only see Converting GPS track data between formats
| This page is being considered for cleanup. Please discuss this page. |
map data formats
| File type | Extension | To import into OSM | To export from OSM | Discussion/Comments |
|---|---|---|---|---|
| Adobe Illustrator | .ai | No | osm2ai.pl | See Exporting to Adobe Illustrator, OSM2ai and http://www.flosm.de/ai/ |
| ArcGIS (by ESRI) |
several | ExportToOSM.py | ArcGIS | |
| E00 | e00 | Partial | Partial | See message 593 |
| Dafif | ? | dafif2osm | No | |
| DXF (by AutoCad) |
.dxf | Partial | No | See Convert dxf File to Shapefile Using Grass |
| GADM | ? | gadm2osm | No | |
| Garmin maps | .img | No | OSM Map on Garmin | |
| Geobase | ? | geobase2osm | No | |
| GML | ? | No | XSLT, Python, GeoConverter (online tool) | See Converting OSM to GML. See JOSM ticket #6921. |
| Google Earth (Keyhole) Markup Language | .kml | JOSM/Plugins/OpenData | OSM in Google Earth, Osm2KML, GeoConverter (online tool) | |
| GPX | .gpx | Yes | traceosm, GeoConverter (online tool) | |
| Image (non georeferenced) |
.gif, .jpg, etc. | Geo Things Map Rectifier |
Main map program | Reference Image using markers and open it with JOSM AgPifoJ Plugin |
| LINZ | ? | LINZ | No | |
| Mapserver | .map | No | Convert to GML first | See Displaying OSM Shapefiles In Mapserver |
| MP (Polish format) | .mp | mp2osm | Osm2mp | |
| NKF | ? | Nkf2osm | No | |
| PGSQL | ? | No | osm2pgsql | See PostgreSQL |
| QGIS | .qgs | No | Convert to GML first | See Importing Planet.osm into QGIS |
| Shapefile | .shp | JOSM/Plugins/OpenData | Partial, GeoConverter (online tool) | See Shapefiles |
| SRTM | ? | Srtm2Osm | No | See SRTM |
| SVG (osmarender style) | .svg | JOSM/Plugins/ImportVec | Main map program | See Osmarender/Howto |
| MATLAB | .mat | No | OpenStreetMap functions [1] | Load as MATLAB structure |
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) |
| Frida | ? | Frida | No | |
| TIGER | ?? | ? | ? | See TIGER, most data has been imported |