[OSM-dev] Splitting the planet into thousands of pieces in one pass.
Sarah Hoffmann
lonvia at denofr.de
Thu Dec 2 08:51:07 GMT 2010
Hi Andrzej,
On Wed, Dec 01, 2010 at 03:19:18PM +0100, andrzej zaborowski wrote:
> A further comment on splitting a big dataset into areas is that if the
> areas are disjoint (like in the case of countries, provinces and other
> administrative areas) or nearly disjoint (like in the case of their
> bboxes) you can build a sort of look-up tree from the list of bboxes,
> so that with n bboxes you only need a little more than log n "is this
> node inside?" checks. So for example if you're splitting the planet
> into 20000 areas, you only need about 15 tests for every node by doing
> a sort of bisection search.
Do you know if there already exists an implementation that creates such
a look-up tree from the administrative boundaries in the OSM DB?
Sarah
More information about the dev
mailing list