<br>Emilie,<br>Thank you for looking at that for me - I will have a look at the other options now I have got it working.   <br>I know what you mean about seeing what it is doing, so dumping the SQL to a file then importing it will make it easier to understand.<br>
<br>I can't remember why I included postgres-contrib - I thought I needed it to get osmosis to compile properly, but I could be wrong!<br><br>Graham<br><br><br><div class="gmail_quote">2009/6/19 Emilie Laffray <span dir="ltr"><<a href="mailto:emilie.laffray@gmail.com">emilie.laffray@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">Graham Jones wrote:<br>
> Hi Folks,<br>
> I have spent a couple of evenings trying to persuade osmosis to import<br>
> a planet dump into postgresql.<br>
><br>
> It was quite a lot harder than I expected because of the need to set<br>
> up the database schema, postgis etc. first (I am not used to<br>
> postgresql, which was a lot of the problem).<br>
><br>
> I have had a go at drafting a procedure for setting this up for the<br>
> first time at:<br>
> <a href="http://wiki.openstreetmap.org/wiki/Talk:Osmosis#Procedure_to_import_data_into_PostGreSQL" target="_blank">http://wiki.openstreetmap.org/wiki/Talk:Osmosis#Procedure_to_import_data_into_PostGreSQL</a><br>
><br>
> Would someone that know more about this than me mind having a look and<br>
> pointing out my mistakes please?  Once it is right I'll add it as a<br>
> separate wiki page rather than hiding it in the 'talk' bit.<br>
</div>Hello,<br>
<br>
I have just had a look at what you have written. It looks good to me. I<br>
usually do not use the task to write directly into postgres and instead<br>
I generate the pgsql dump and import them later on. Based on experience,<br>
it is just faster. If you do that, you have to add an extra step which<br>
is found in the load script provided also with Osmosis.<br>
Also, because I don't like not to know what is happening, I add some<br>
logging to see what the program is doing.<br>
In addition, the import information that you have given do not take into<br>
account the optional columns for bboxbuilder and linestringbuilder,<br>
which can be useful for some people. We may want to add a comment about<br>
those options.<br>
Other than that, your instructions are a pretty good to get started.<br>
One quick note, you are installing postgres contrib but you are not<br>
making use of any of the scripts that are present inside contrib. One of<br>
the useful script is the admin script especially if you are using pgadmin.<br>
<font color="#888888"><br>
Emilie Laffray<br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Dr. Graham Jones<br>Hartlepool, UK<br>email: <a href="mailto:grahamjones139@gmail.com">grahamjones139@gmail.com</a><br>