19 #ifndef GEOS_INDEX_STRTREE_STRTREE_H
20 #define GEOS_INDEX_STRTREE_STRTREE_H
22 #include <geos/export.h>
23 #include <geos/index/strtree/AbstractSTRtree.h>
24 #include <geos/index/SpatialIndex.h>
25 #include <geos/geom/Envelope.h>
31 #pragma warning(disable: 4251) // warning C4251: needs to have dll-interface to be used by clients of class
70 bool intersects(
const void* aBounds,
const void* bBounds);
80 std::auto_ptr<BoundableList> createParentBoundables(
BoundableList* childBoundables,
int newLevel);
82 std::auto_ptr<BoundableList> createParentBoundablesFromVerticalSlices(std::vector<BoundableList*>* verticalSlices,
int newLevel);
84 STRIntersectsOp intersectsOp;
86 std::auto_ptr<BoundableList> sortBoundables(
const BoundableList* input);
88 std::auto_ptr<BoundableList> createParentBoundablesFromVerticalSlice(
97 std::vector<BoundableList*>* verticalSlices(
107 return &intersectsOp;
118 STRtree(std::size_t nodeCapacity=10);
124 static double avg(
double a,
double b) {
125 return (a + b) / 2.0;
141 return AbstractSTRtree::remove(itemEnv, item);
154 #endif // GEOS_INDEX_STRTREE_STRTREE_H