<div class="gmail_quote">On Wed, Sep 5, 2012 at 3:42 PM, sly (sylvain letuffe) <span dir="ltr"><<a href="mailto:liste@letuffe.org" target="_blank">liste@letuffe.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
> I will end up<br>
> with the full planet (as every single node in OSM might be modified one day<br>
> or the other...)<br>
<br>
Well, My guess is that it will take a loooong time, so long before that you<br>
might need to re-import your extract for whatever fail delete, style change,<br>
software update, and so on. Thus returning your database storage back to your<br>
extract's size only.<br></blockquote><div><br>200% agree! But my server quota will be reached much earlier :-) I'll keep this one in mind if any other option fails!<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Note that a regular extract re-import is also a way to clean what is outside<br>
your zone of interest.<br></blockquote><div><br>Might consider that as well but sounds a bit heavy to do it every minute / hour<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
> By the way, would this be a bug or a request of improvement for osm2pgsql<br>
> or osmosis?<br>
<br>
I think it is not possible to do it properly, a dirty hack loosing data from<br>
time to time could do but that will still require server ressources.<br>
As said earlier here :<br>
<a href="http://lists.openstreetmap.org/pipermail/dev/2012-August/025503.html" target="_blank">http://lists.openstreetmap.org/pipermail/dev/2012-August/025503.html</a><br>
A share zone for regional diffs exports could do, or support for the new<br>
augmented diffs in those tools.<br>
But both still have to be done.<br></blockquote><div><br>I just tried another hack, but feel it's going nowhere:<br><ol><li>Export all from the database to an osm file => full.osm</li><li>Download the latest diff file => changes.osc</li>
<li>Apply changes.osc to full.osm => updated.osm</li><li>Extract data in the bbox from updated.osm => updated_bbox.osm</li><li>Derive the changes between full.osm and updated_bbox.osm => change_bbox.osc</li></ol>
Then this change file (change_bbox.osc) contains all the changes, but only in the bbox and can be applied to the DB, using osm2pgsql.<br><br>Although a bit heavy I thought it would work... But apparently, Osmosis cannot read the PostGIS database, if using the osm2pgsql schema, right? I've tried with --read-apidb, --read-pgsql and --read-pgsimp, and always getting errors.<br>
<br>Can someone tell me if this approach is possible?<br><br>Thanks again!<br><br>Stéphane<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class="HOEnZb"><font color="#888888"><br>
--<br>
sly<br>
qui suis-je : <a href="http://sly.letuffe.org" target="_blank">http://sly.letuffe.org</a><br>
email perso : sylvain chez letuffe un point org<br>
<br>
_______________________________________________<br>
dev mailing list<br>
<a href="mailto:dev@openstreetmap.org">dev@openstreetmap.org</a><br>
<a href="http://lists.openstreetmap.org/listinfo/dev" target="_blank">http://lists.openstreetmap.org/listinfo/dev</a><br>
</font></span></blockquote></div><br>