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