[OSM-talk] Version 0.5 osm to shapefile ?

Matthew Perry perrygeo at gmail.com
Fri Dec 14 16:15:54 GMT 2007


On Dec 14, 2007 7:33 AM, Matthew Perry <perrygeo at gmail.com> wrote:
> In the 0.4 days, there were a number of tools to convert osm files to
> a GIS/ogr compatible format
> (http://wiki.openstreetmap.org/index.php/Converting_OSM_to_GML,
> osm2shp, etc). None of these seem to work "out of the box" with
> version 0.5 osm files.
>
> Have any such tools been upgraded to the new API?

To partially answer my own question; I came up with a simple method with JOSM:

1. Use JOSM to export to .gpx
2. Use ogr2ogr (version 1.5+ has gpx support) to convert to any GIS
format: ogr2ogr ways_via_gpx.shp josm_output.gpx tracks

Perhaps not a proper osm to shapefile converter but it works.
Obviously only for smaller datasets that can be loaded into JOSM (not
planet.osm!) but hopefully someone finds this useful.
-- 
Matthew T. Perry
http://www.perrygeo.net




More information about the talk mailing list