[OSM-dev] [Osmosis] BBox of OSC

Frederik Ramm frederik at remote.org
Sun Nov 30 01:15:08 GMT 2008


Hi,

Wolfgang W. Wasserburger wrote:
> is it right, that osmosis doesn't have the possibility to clip
> OSM-Changefiles?

Clipping OSM change files is logically not possible because while 
processing the change file you do not have access to a database of 
existing (and unchanged) nodes. Thus, if a change in a way occurs (say, 
a way is modified from highway=service to highway=unclassified) you will 
not know whether it is inside or outside the clip rectangle.

You can however simply add full diffs to your clipped database/data file 
(this will not fail even if the diff contains a "modify" operation for 
an object not present), and clip the database/data file afterwards.

Bye
Frederk

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




More information about the dev mailing list