19#ifndef GEOS_NODING_SNAPROUND_MCINDEXSNAPROUNDER_H
20#define GEOS_NODING_SNAPROUND_MCINDEXSNAPROUNDER_H
22#include <geos/export.h>
24#include <geos/noding/Noder.h>
25#include <geos/noding/NodedSegmentString.h>
26#include <geos/noding/snapround/MCIndexPointSnapper.h>
27#include <geos/algorithm/LineIntersector.h>
28#include <geos/geom/Coordinate.h>
29#include <geos/geom/PrecisionModel.h>
35#pragma warning(disable: 4251)
74class GEOS_DLL MCIndexSnapRounder:
public Noder {
84 li.setPrecisionModel(&pm);
88 return NodedSegmentString::getNodedSubstrings(*nodedSegStrings);
112 std::vector<SegmentString*>* nodedSegStrings;
114 std::auto_ptr<MCIndexPointSnapper> pointSnapper;
116 void snapRound(
MCIndexNoder& noder, std::vector<SegmentString*>* segStrings);
127 std::vector<SegmentString*>* segStrings,
128 std::vector<geom::Coordinate>& intersections);
134 void computeIntersectionSnaps(std::vector<geom::Coordinate>& snapPts);
142 void checkCorrectness(std::vector<SegmentString*>& inputSegmentStrings);
145 MCIndexSnapRounder(
const MCIndexSnapRounder& other);
146 MCIndexSnapRounder& operator=(
const MCIndexSnapRounder& rhs);
A LineIntersector is an algorithm that can both test whether two line segments intersect and compute ...
Definition LineIntersector.h:49
Specifies the precision model of the Coordinate in a Geometry.
Definition PrecisionModel.h:87
double getScale() const
Returns the multiplying factor used to obtain a precise coordinate.
Nodes a set of SegmentString using a index based on index::chain::MonotoneChain and a index::SpatialI...
Definition MCIndexNoder.h:63
Represents a list of contiguous line segments, and supports noding the segments.
Definition NodedSegmentString.h:58
An interface for classes which represent a sequence of contiguous line segments.
Definition SegmentString.h:46
void computeVertexSnaps(std::vector< SegmentString * > &edges)
void computeNodes(std::vector< SegmentString * > *segStrings)
Computes the noding for a collection of SegmentStrings.
std::vector< SegmentString * > * getNodedSubstrings() const
Returns a Collection of fully noded SegmentStrings. The SegmentStrings have the same context as their...
Definition MCIndexSnapRounder.h:87
Contains classes and interfaces implementing fundamental computational geometry algorithms.
Definition Angle.h:33
Contains classes to implement the Snap Rounding algorithm for noding linestrings.
Definition HotPixel.h:49
Classes to compute nodings for arrangements of line segments and line segment sequences.
Definition PreparedLineString.h:27
Basic namespace for all GEOS functionalities.
Definition IndexedNestedRingTester.h:25