<div dir="ltr"><br><br><div class="gmail_quote">On Fri, Sep 19, 2008 at 2:18 AM, Andreas Kalsch <span dir="ltr"><<a href="mailto:andreaskalsch@gmx.de">andreaskalsch@gmx.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thank you for your help.<br>
The fourth point means that in my planned application I am not going to use OSM database but just a subset of it - so I need kind of trigger which updates my application data from my local OSM database.<br>
<br>
I have tried to do this the way I described, but it still does not work. I described it in another post this morning. Either ...<br>
<br>
osmosis/bin/osmosis --read-xml-change data/osm/20080916-20080917.osc --apply-change --write-mysql host=localhost database=osm_de user=user password=xxx </blockquote><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
and ...<br>
<br>
osmosis/bin/osmosis --read-xml-change data/osm/20080916-20080917.osc --read-mysql host=localhost database=osm_de user=root password=qay --apply-change --write-mysql host=localhost database=osm_de user=user password=xxx<br>

<br>
do not work. What is the right syntax?</blockquote><div><br>It should be like this (note use of --write-mysql-change).<br>osmosis/bin/osmosis --read-xml-change data/osm/20080916-20080917.osc --write-mysql-change host=localhost database=osm_de user=user
password=xxx<br><br>Note that you can also use the --read-change-interval task which will automate the downloading of change files and eliminate the need for the --read-xml-change task.  You can easily automate this via cron allowing you to use minute changesets if you wish.<br>
<a href="http://wiki.openstreetmap.org/index.php/Osmosis/DetailedUsage#--read-change-interval_.28--rci.29">http://wiki.openstreetmap.org/index.php/Osmosis/DetailedUsage#--read-change-interval_.28--rci.29</a><br><br>Let me know if you have any problems with the --write-mysql-change task, it hasn't been heavily used yet.<br>
<br>Have you looked at PostgreSQL?  Osmosis provides a "pgsql-simple" schema which is very similar to the OSM MySQL schema but doesn't have history tables and uses some geo-spatial extensions.  It is already being used by a couple of people and may be more appropriate depending on your usage.<br>
</div></div><br>Brett<br><br></div>