Brett,<br><br>I'll have a look at --write-pgsql-dump and add some words about that too.  Then I'll have a go at MySQL...<br><br>The other thing I would like to add is a write-up on choosing a database to use, because it is not obvious to me which would be the best, but I suspect this has been looked at a lot before now.  I think the choices are:<br>
<br><ul><li>PostgreSQL/PostGIS - Can handle big datasets, and has geographic extensions.  What I do not know is whether these extensions are fast or not, or if for simple things like selecting for a bounding box it would be quicker to just select on lat/lon directly.   Mapnik uses this database, but the schema is optimised for rendering.<br>
</li><li>MySQL - Can handle big datasets, but does not have geographic estensions.</li><li>Sqlite - I have seen a discussion about this and I think there are doubts over how well it works for big datasets?</li><li>GT.M - I know nothing about this, but the xapi servers seem to use it?<br>
</li></ul>I would also like to include some example SQL queries to deal with selecting nodes / ways etc. in a given bounding box, or searching for points of interest.   These are not too difficult to do, but I suspect that some ways are more efficient than others, so it would be nice to include 'optimum' examples.<br>
<br>Do you know if this has already been done and written up somewhere?    If not I will set up a template and ask for help filling it in!<br><br>Regards<br><br><br>Graham.<br><br><br><div class="gmail_quote">2009/6/21 Brett Henderson <span dir="ltr"><<a href="mailto:brett@bretth.com">brett@bretth.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>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Folks,<br>
I have spent a couple of evenings trying to persuade osmosis to import a planet dump into postgresql.<br>
<br>
It was quite a lot harder than I expected because of the need to set up the database schema, postgis etc. first (I am not used to 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 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 pointing out my mistakes please?  Once it is right I'll add it as a separate wiki page rather than hiding it in the 'talk' bit.<br>
</blockquote></div>
Hi Graham,<br>
<br>
Thanks for taking the effort to document this.  The Osmosis documentation is lacking in a number of areas, this is one of them :-)  I see you've already added a link from the Osmosis detailed usage page which is great.<br>

<br>
If you get a chance, check out the --write-pgsql-dump task which is a much faster (but less convenient) way of importing very large data sets.  If you or somebody else has some time to document that procedure it would be very helpful.<br>

<br>
Cheers,<br><font color="#888888">
Brett<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>