[OSM-talk] import or convert .sch file to osm ?

Jukka Rahkonen jukka.rahkonen at mmmtike.fi
Sat Dec 19 08:14:16 GMT 2009


Michael musset <mickamusset <at> gmail.com> writes:

> 
> 
> thanks, but i get the same error for python script :Traceback (most recent
call last):  File "ogr2osm.py", line 74, in ?    import ogrImportError: No
module named ogrand it is weird because i 've already installed python-gdal
package ....

Hi,

Install FWTools from FWTools.maptools.org and place ogr2osm.py and that other
python file to \bin directory.  Run setfw.bat from FWTools home directory and
you will be able to run ogr2osm.py.  It does not guarantee that conversion will
be successful but at least you can try.

If you need to convert a shapefile to osm you can do it by using gpx in between.
 Save a shapefile from OpenJUMP, convert it to gpx with gpxbabel or GPS Track
maker, read the gpx in with JOSM, convert to data layer.  A bit tricky but
doable.  GPS Track maker also supports whole lot of different projections. But I
hope that ogr2osm will work for you and that we will have an osm2ogr utility as
well one day.

-Jukka Rahkonen-





More information about the talk mailing list