|
Geometry : |
Subject: [ggl] spacial index construction interface
From: Barend Gehrels (barend)
Date: 2011-02-15 15:20:34
> I haven't modified the rtree yet so the translators are standalone.
> Firstly I'd like to talk about how the interface should look like.
OK, I see
>
> Lets start with the template parameters. IMO it should look like this:
>
> index::rtree<Box> rtb;
> index::rtree<Point> rtp;
> index::rtree<UserDefinedPoint, UserDefinedTranslator> rtud;
>
> Then every method which takes Box as a parameter (e.g. find(...))
> should just take an arbirtary object which is adapted to the box
> concept. This allows us to have whatever we want in the internal
> structure of the rtree (arbitrary type of box).
>
> Methods like insert should take everything which translator is able to
> translate to some object adapted to point or box concept.
This all sounds very good to me. Cool!
Regards, Barend
Geometry list run by mateusz at loskot.net