[OSM-dev] area filtering on change streams?
Stephan Knauss
osm at stephans-server.de
Sun Jan 20 17:49:14 GMT 2013
On 18.01.2013 18:53, Brian Cavagnolo 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.
http://wiki.openstreetmap.org/wiki/User:Stephankn/knowledgebase#Cleanup_of_ways_outside_the_bounding_box
Stephan
More information about the dev
mailing list