<html><head></head><body>Hi, <br>
<br>
I think the way described here also helps you to clean up your database from time to time<br>
<br>
<a href="https://wiki.openstreetmap.org/wiki/User:Stephankn/knowledgebase#Cleanup_of_ways_outside_the_bounding_box">https://wiki.openstreetmap.org/wiki/User:Stephankn/knowledgebase#Cleanup_of_ways_outside_the_bounding_box</a><br>
<br>
Stephan <br>
<br><br><div class="gmail_quote">On November 30, 2015 9:29:09 PM GMT+07:00, tb <osm@qayx.net> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">Hi,<br /><br />i'm running a local database of the OpenStreetMap data, and this <br />database is permanently updated by using osmosis and osm2pgsql (minutely <br />diffs).<br /><br />Now i'm interested in keeping just a region like a city or a small state <br />updated the same way (on a much smaller system). The region i'm <br />interested in is defined as a polygon in a separate table, and i keep <br />the content of all the mapnik tables (planet_osm_point, ...line, <br />...polygon, ...roads) to this region by using a trigger - no problem so <br />far. But unfortunately the other tables used by osm2pgsql <br />(planet_osm_nodes, ...ways, ...rels) getting bigger by time.<br /><br />Complete reload of the region every night is something i don't like - so <br />far.<br /><br />I wonder if someone has a system like this up and running, and how this <br />works.<br /><br />Is this possible in general by using osm2pgsql?<br /><br />Any help or suggestions
gratefully accepted!<br />-tb<br /><br /><br /><hr /><br />dev mailing list<br />dev@openstreetmap.org<br /><a href="https://lists.openstreetmap.org/listinfo/dev">https://lists.openstreetmap.org/listinfo/dev</a><br /></pre></blockquote></div></body></html>