On Friday 11 March 2011, Rodolphe Quiedeville wrote:
> Hi,
> 
> With osmosis-0.38 it's possible to extract data contains in a bbox from
> ans osm data file. But it appears that it's not work for an osm change
> file.
> I want to know if changes files from
> planet.openstreetmap.org/hourly-replicate/ are useful for a BBOX. My
> first idea wass to to this with osmosis, if someone give me a hint.

There is no way of doing this "properly", because of reasons that other posters 
have mentioned. But it is possible to do it in a "lossy" way that accepts the 
fact that transitions across the borders are going to cause slight wrongness. 
For some bounding boxes, like islands (I do this for the british isles), this 
can work quite well, as movements of objects across the borders will be minimal.

I don't think there's any general off-the-shelf solution for doing this though. 
I developed my own code ( 
https://bitbucket.org/ris/oslmusicalchairs/src/e4c27e849345/planet.py ) to 
import changefiles into my project, cherrypicking the pieces of information 
that my app is interested in.


robert.

_______________________________________________
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk

Reply via email to