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 _______________________________________________ dev mailing list [email protected] http://lists.openstreetmap.org/listinfo/dev

