17#include <geos/index/chain/MonotoneChain.h>
18#include <geos/index/strtree/TemplateSTRtree.h>
33class GEOS_DLL SegmentMCIndex {
34 using CoordinateSequence = geos::geom::CoordinateSequence;
35 using Envelope = geos::geom::Envelope;
36 using MonotoneChain = geos::index::chain::MonotoneChain;
37 using MonotoneChainSelectAction = geos::index::chain::MonotoneChainSelectAction;
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
Provides classes for computing buffers of geometries.
Definition namespaces.h:182
Provides classes for implementing operations on geometries.
Definition CleanCoverage.h:34
Basic namespace for all GEOS functionalities.
Definition geos.h:38