[OSM-talk] Extracting a BBOX from an osm change file

Phil! Gold phil_g at pobox.com
Fri Mar 11 15:34:21 GMT 2011


* Rodolphe Quiedeville <rodolphe at quiedeville.org> [2011-03-11 13:39 +0100]:
> 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.

You can't apply a bbox to a change file.  Change files basically contain
the IDs of changed objects and their current properties.  Notably, they do
not contain the old properties of the objects, so osmosis cannot tell in
all cases whether an object should be considered to be in or out of the
bbox.

If you're using osm2pgsql, you just have to apply the full change files.
You can syill use osm2pgsql's bbox, which will restrict the data in the
rendering tables (but the tables for slim mode will gradually accumulate
data from outside the bbox that will only go away if you do a dump and
fresh reload from a planet extract).

-- 
...computer contrarian of the first order... / http://aperiodic.net/phil/
PGP: 026A27F2  print: D200 5BDB FC4B B24A 9248  9F7A 4322 2D22 026A 27F2
--- --
One can measure the importance of a scientific work by the number of
earlier publications rendered superfluous by it.
                       -- David Hilbert
---- --- --



More information about the talk mailing list