[GIS] Batch convert OSM/PBF data

batchogrogr2ogropenstreetmap

I need to import some OSM data about a region of Italy into a SHP file or Postgres DB, possibly with batch process.

I already use OGR2OGR to batch import data from SHP to Oracle and Postgres and I know that the tool supports many other formats. I would like to know where I can find a compiled version of OGR2OGR that support OSM/PBF data and how I should use it.

I was looking at FWTools but on the site documentation I cannot see anything about OSM/PBF support.

Best Answer

The new GDAL Version 1.10 supports Openstreetmap data:

http://www.gdal.org/ogr/drv_osm.html

If you are on Windows, you can get GDAL 1.10 precompiled from http://www.gisinternals.com/sdk/.

OSGeo4W does not yet have the 1.10 version.