I think I will go for your second option: remove every way with no node in the bbox.<br><br>Increasing the storage capacity is unfortunately not possible for now (mutualized server) and, anyway, it wouldn't make so much sense: I want to have only data for one region in my database and, like this, I will end up with the full planet (as every single node in OSM might be modified one day or the other...)<br>
<br>By the way, would this be a bug or a request of improvement for osm2pgsql or osmosis?<br><ul><li>osm2pgsql: actually use the --bbox option when applying a diff file to the database</li><li>osmosis: allowing to extract part of a diff file based on a bbox</li>
</ul><p>Cheers</p><p>Stéphane<br clear="all"></p>--<br>"Le mot progrès n'aura aucun sens tant qu'il y aura des enfants malheureux" -- Albert Einstein<br><br>"A journey does not need reasons. Before long, it proves to be reason enough in itself. One thinks that one is going to make a journey, yet soon it is the journey that makes or unmakes you." -- Nicolas Bouvier<br>
<br>Photos de voyages, photos de montagne: <a href="http://www.henriod.info/" target="_blank">http://www.henriod.info</a><span dir="ltr"><span dir="ltr" title="Appeler ce numéro de téléphone en/au(x) Tadjikistan avec Skype : +992934624662"><span>  </span></span> <br>
</span><br>
<br><br><div class="gmail_quote">On Wed, Sep 5, 2012 at 3:14 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">
> But it looks like I have a problem now...<br>
><br>
>    1. I need to keep the tables ways, rels and nodes because of the diff<br>
>    updates<br>
>    2. Those 3 tables will continue growing up with each new diff, until I<br>
>    reach the storage capacity of the server<br>
><br>
> The only solution I see<br>
is to increase the storage capacity ;-)<br>
<br>
> is a post-processing that will erase from PostGIS<br>
> all the nodes lying outside my bounding box + all the ways using one of<br>
> thses nodes + all the relations using one of thses nodes or one of these<br>
> ways.<br>
<br>
Doing that will erase data that you want in your bbox, suppose a way crossing<br>
the border of your bbox, it will be erased while it still had nodes in the<br>
bbox.<br>
A better but longer solution is to remove every ways with no nodes in the<br>
bbox.<br>
<br>
But that probably won't be as easy as it sounds. Better increase you storage<br>
capacity ;-)<br>
<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>