17#include <geos/index/chain/MonotoneChain.h>
18#include <geos/index/strtree/TemplateSTRtree.h>
24class CoordinateSequence;
33class GEOS_DLL SegmentMCIndex {
38 template<
typename ItemType>
39 using TemplateSTRtree = geos::index::strtree::TemplateSTRtree<ItemType>;
43 TemplateSTRtree<const MonotoneChain*> index;
44 std::vector<MonotoneChain> segChains;
46 void buildIndex(
const CoordinateSequence* segs);
50 SegmentMCIndex(
const CoordinateSequence* segs);
52 void query(
const Envelope* env, MonotoneChainSelectAction& action);
The internal representation of a list of coordinates inside a Geometry.
Definition CoordinateSequence.h:56
An Envelope defines a rectangulare region of the 2D coordinate plane.
Definition Envelope.h:59
Definition MonotoneChainSelectAction.h:44
Monotone Chains are a way of partitioning the segments of a linestring to allow for fast searching of...
Definition index/chain/MonotoneChain.h:85
Basic namespace for all GEOS functionalities.
Definition geos.h:39