I usually first extract the pbf file to a PostgreSQL database using osm2pgsql.
Then connect to the DB using any GIS software. In osm2pgsql you can specify a bounding box and which features you want to extract to the DB, to speed up the process. ----- Original Message ----- From: [email protected] Sent: 09/03/13 02:23 AM To: Talk Openstreetmap, [email protected] Subject: [OSM-talk] Converting OSM roads to GIS dataset (Queensland, Australia) Hello all, I'm trying to convert the Queensland, Australia OSM roads into a GIS format (esri shape or mapinfo) using GDAL 1.10 I downloaded a .osm.pbf file for australia from http://download.geofabrik.de/australia-oceania/australia.html I'm only really after the geometry that represents roads. So I don't need the points or polygons. Does anyone have any suggestions about any arguments I can put into my GDAL command to restrict translation to only what I consider relevant? For example, the argument -spat 136 -31 156 should restrict import to a bounding box that approximately represents Qld. I would appreciate advice on; - what geometry layer suits my purposes - how to specify that in a GDAL argument Kind regards, *Nick Lawrence* Senior Spatial Science Officer | Geospatial, Road Design & Competency *Engineering & Technology Branch* | Department of Transport and Main Roads ----------------------------------------------------------------- Floor 19 | Brisbane City - 313 Adelaide Street | 313 Adelaide Street | Brisbane City Qld 4000 GPO Box 1412 | Brisbane City Qld 4001 P: (07) 30667977 | F: (07) 30668998 E: [email protected] W: www.tmr.qld.gov.au http://www.tmr.qld.gov.au/ *********************************************************************** WARNING: This email (including any attachments) may contain legally privileged, confidential or private information and may be protected by copyright. You may only use it if you are the person(s) it was intended to be sent to and if you use it in an authorised way. No one is allowed to use, review, alter, transmit, disclose, distribute, print or copy this email without appropriate authority. If this email was not intended for you and was sent to you by mistake, please telephone or email me immediately, destroy any hardcopies of this email and delete it and any copies of it from your computer system. Any right which the sender may have under copyright law, and any legal privilege and confidentiality attached to this email is not waived or destroyed by that mistake. It is your responsibility to ensure that this email does not contain and is not affected by computer viruses, defects or interference by third parties or replication problems (including incompatibility with your computer system). Opinions contained in this email do not necessarily reflect the opinions of the Department of Transport and Main Roads, or endorsed organisations utilising the same infrastructure. ***********************************************************************
_______________________________________________ talk mailing list [email protected] http://lists.openstreetmap.org/listinfo/talk

