On Jan 22, 2008 9:32 AM, Andy Robinson (blackadder) <<a href="mailto:blackadderajr@googlemail.com" target="_blank">blackadderajr@googlemail.com</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

John,<br><br>This is probably better spotted and hopefully responded to by the folks on<br>the dev list. Copied there.<br><br>Cheers<br><br>Andy<br><br>>-----Original Message-----<br>>From: <a href="mailto:newbies-bounces@openstreetmap.org" target="_blank">

newbies-bounces@openstreetmap.org</a> [mailto:<a href="mailto:newbies-" target="_blank">newbies-</a><br>><a href="mailto:bounces@openstreetmap.org" target="_blank">bounces@openstreetmap.org</a>] On Behalf Of John Wheeler
<br>>Sent: 22 January 2008 7:10 AM
<br>>To: <a href="mailto:newbies@openstreetmap.org" target="_blank">newbies@openstreetmap.org</a><br>>Subject: [OSM-newbies] Should osm2pgsql create the planet_osm tables?<br>><br>>Hi,<br>><br>>My goal is to setup a renderfarm to generate my own maps. I setup a
<br>>postgresql with postgis and succeeded in compiling osm2pgsql from the<br>>subversion repository. I also create a database called gis. In the readme<br>>of osm2pgsql I read:<br>><br>>Connects to database and creates the following 4 tables:
<br>>   - planet_osm_point<br>>   - planet_osm_line<br>>   - planet_osm_roads<br>>   - planet_osm_polygon<br>><br>>So what I understand is that osm2pgsql creates these tables before it<br>>starts processing the planet file. However when I
<br>>run osm2pgsql with the following command<br>><br>>./osm2pgsql -c -d gis  /opt/planet-latest.osm.bz2<br>><br>>I get:<br>><br>>osm2pgsql SVN version 0.51-20080121 $Rev: 6139 $<br>><br>>Using projection SRS 3395 (WGS84 Mercator)
<br>>Setting up table: planet_osm_point<br>>Setting up table: planet_osm_line<br>>Setting up table: planet_osm_polygon<br>>Setting up table: planet_osm_roads<br>><br>>Reading in file: /opt/planet-latest.osm.bz2

<br>>Processing: Node(3640k) Way(0k) Relation(0k)<br>><br>>but I see no tables being created in my gis database and when osm2pgsl is<br>>ready I stil see no tables. Am I forgetting something or is there a ddl
<br>
>script to create these tables? Any help is appreciated.<br></blockquote><div><br>The tables are created and populated within a transaction, so you may not see them appear until osm2pgsql has completely finished.<br>On my box this takes several hours for the latest planet, and spends at least an hour with no output as postgres is indexing the data.
<br>The output looks like it is working.<br><br>You might want to try it with a smaller subset of data first to check everything is working. Any old .osm file will do, just download a small bbox from the server (save from JOSM), and try and import that. It should happen almost instantly and you can then check out the data in the tables.
<br>Once you get that working you can import the 3.4GB of compressed planet.osm.<br><br>Dave<br></div></div>