3

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.

3

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.

  • Thank you! I'll give it a try. Do I have to download the x64 version as I'm on Windows 7 x64 or does the x86 work right anyway? – Cheshire Cat May 10 '13 at 10:09
  • I am not sure if and how 64bit GDAL works with a 32-bit Postgres Database. Apart from that I would suggest the x64 version; it might run faster and without some Gigabyte limits. – AndreJ May 10 '13 at 11:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.