[OSM-dev] area filtering on change streams?

Frederik Ramm frederik at remote.org
Sun Jan 20 18:00:01 GMT 2013


On 20.01.2013 18:49, Stephan Knauss wrote:
>> I'd like to maintain an updatable database of OSM data clipped by a
>> polygon.  I understand how to initialize the database using osmosis'
>> --bounding-polygon task.  But this task does not seem to operate on a
>> change stream.  Any recommendations on trimming a change set down?
> As you already noticed only nodes have a coordinate and can be used for
> filtering.
> Select your bounds a bit bigger and filter later in the database. I'm
> using a cron job to clean it up.

Alternatively, if you don't need minutely updates, download and clip the 
full area of interest in regular intervals, run a --derive-change task 
against the new extract and the earlier version, and load the resulting 
.osc into the database.


Frederik Ramm  ##  eMail frederik at remote.org  ##  N49°00'09" E008°23'33"

More information about the dev mailing list