[OSM-talk] osm2shp

Mikel Maron mikel_maron at yahoo.com
Thu Dec 20 15:46:14 GMT 2007


Are there any sample rule files available? I just want something that takes the most common set of OSM tags, and creates a shapefile. 

-Mikel

----- Original Message ----
From: Jochen Topf <jochen at remote.org>
To: Nick Black <nickblack1 at gmail.com>
Cc: OSM at damian-fell.co.uk; talk at openstreetmap.org
Sent: Thursday, December 20, 2007 2:14:48 PM
Subject: Re: [OSM-talk] osm2shp


On Thu, Dec 20, 2007 at 12:41:10PM +0000, Nick Black wrote:
> Given that Jochen's osmlib-export seems to do the job of converting
> osm xml to shapefiles, is it worth bothering with developing osm2shp?
> What would osm2shp do that osmlib-export doesn't?
> 
> What would be cool is adding support for .osm to ogr2ogr, which is
> also c++, runs on any platform, is free and converts from almost any
> geo format to almost any other geo format.
> 
> http://www.gdal.org/ogr/index.html
> 
> I know that Mikel and Schuyler talked about implementing it in
> Victoria - could be a fun xmas project for someone...

The problem with all the conversions between OSM and common GIS formats
is that there is no one true way of doing the conversion because the
underlying data models are different. My osmlib-export is explicitly
designed as a sort of toolbox which can be configured to do almost any
kind of conversion that could be needed. My goal with osmlib-export was
to seperate the conversion mechanism itself from the part that looks
at the different tags and decides what to do with them.

But this flexibility also means that it is not the fastest way of doing
things and it might be a bit harder to use.  So it still makes sense to
have specialized tools that do one kind of often needed conversion
faster or easier, like the osm2pgsql that is optimized for Mapnik use.

But osmlib-export is available and should work (if you have problems,
talk to me!). I encourage everybody to try it out and give me feedback.

Jochen
-- 
Jochen Topf  jochen at remote.org  http://www.remote.org/jochen/
  +49-721-388298


_______________________________________________
talk mailing list
talk at openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk







More information about the talk mailing list