You can check tool osmupdate which has option to clip data outside boundaries.<div><a href="http://wiki.openstreetmap.org/wiki/Osmupdate#Applying_Geographical_Borders">http://wiki.openstreetmap.org/wiki/Osmupdate#Applying_Geographical_Borders</a><br>
<br><div class="gmail_quote">On 5 September 2012 16:06, Stéphane Henriod <span dir="ltr"><<a href="mailto:s@henriod.info" target="_blank">s@henriod.info</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div id=":a8">thanks for your anwers!<br><br>But it looks like I have a problem now...<br><ol><li>I need to keep the tables ways, rels and nodes because of the diff updates</li><li>Those 3 tables will continue growing up with each new diff, until I reach the storage capacity of the server</li>
</ol><p>The only solution I see is a post-processing that will erase from PostGIS all the nodes lying outside my bounding box + all the ways using one of thses nodes + all the relations using one of thses nodes or one of these ways.</p>
<p>Except if anyone else has a magical solution...</p><p></p></div></blockquote></div><br></div>