[geos-devel] AbstractSTRtree::createParentBoundables

strk strk at keybit.net
Mon May 3 12:29:34 EDT 2004


Ok. This is what I worked out:
AbstractSTRtree defines a protected pure virtual sortBoundables().
STRtree and SIRtree implement it.
Comparator functions used with sort are statics of STRtree.cpp
and SIRtree.cpp

--strk;

abstract
On Mon, May 03, 2004 at 05:07:04PM +0200, strk wrote:
> AbstractSTRtree::createParentBoundables cheats on sorting,
> using a fake comparator function to do it (compareAbsBoundables).
> 
> JTS uses a subclass-defined comparator obtained with a call
> to getComparator.
> 
> This thing seems to be not-so-easy to do in C++. Does anyone have
> hints on the topic ?
> 
> --strk;
> _______________________________________________
> geos-devel mailing list
> geos-devel at geos.refractions.net
> http://geos.refractions.net/mailman/listinfo/geos-devel



More information about the geos-devel mailing list