[OSM-dev] OSM 2 Oracle

Frederik Ramm frederik at remote.org
Fri Feb 3 13:20:12 GMT 2012


Hi,

On 02/03/2012 01:39 PM, Jukka Rahkonen wrote:
> Once you begin, why not to develop a general OSM driver for GDAL as
> possible? It could do about the same as osm2pgsql but instead of a named
> target it would convert from osm into ogr simple features.

Osmium can already write out to OGR so it would be a good starting
point for such an universal converter:

http://blog.jochentopf.com/2011-09-14-ogr-support-for-osmium.html

Osmium is not a polished tool but a library; you will have to write a 
little C++ code to use it. For writing to shape files, there's an option 
of using "osmjs" where you can specify the mapping from OSM features to 
shape features using Javascript - no C++ or compilation required. 
There's nothing like that for writing to OGR yet though.

Bye
Frederik





More information about the dev mailing list