[GRASS-user] Re: osm import

Hamish hamish_b at yahoo.com
Thu Apr 29 09:37:59 EDT 2010


Moritz wrote:
> In a recent post [1], you said that to import OSM maps, one
> can use v.in.ogr, but I don't see a driver for OSM maps in
> ogr. Could you explain ?

umm, probably just a dream, it was a former Summer of Code wish
for GDAL which apparently never happened.


a web search finds these which may help:
  http://www.google.co.nz/search?q=osm2shp  (.shp will be lossy!)
  http://svn.openstreetmap.org/applications/utils/import/ogr2osm/ogr2osm.py

and a crappy old osm2grass script I wrote circa GRASS 6.1:
  http://sites.google.com/site/hamishbowman/gpsdrivefiles#osm


but probably your best bet is to try the v.in.gpsbabel module
with a recent version of GpsBabel. ([to be] renamed/rewritten as
v.in.gps in GRASS 7)

and probably the best near-term strategy is to help verify that
GpsBabel's import filter does not lose any data in the OSM tag
-> GPX attribute conversion.

then either v.in.ogr + OGR's GPX driver or v.in.gpsbabel's GPX.


finally "osm2pgsql" and then connect GRASS to the PostGIS database
might be the most robust approach. I don't know much about
PostGIS -> GRASS but it is something I'd like to read about on
a GRASS wiki page :)


Hamish



      


More information about the grass-user mailing list