17 #include <geos/noding/BasicSegmentString.h>
45 class GEOS_DLL CoverageRing :
public noding::BasicSegmentString {
50 bool m_isInteriorOnRight;
51 std::vector<bool> m_isInvalid;
52 std::vector<bool> m_isMatched;
54 std::size_t findInvalidStart(std::size_t index);
56 std::size_t findInvalidEnd(std::size_t index);
58 std::size_t nextMarkIndex(std::size_t index);
69 std::unique_ptr<LineString> createLine(
70 std::size_t startIndex,
74 std::unique_ptr<CoordinateSequence> extractSection(
75 std::size_t startIndex, std::size_t endIndex);
77 std::unique_ptr<CoordinateSequence> extractSectionWrap(
78 std::size_t startIndex, std::size_t endIndex);
84 CoverageRing(
const LinearRing* ring,
bool isShell);
93 static bool isKnown(std::vector<CoverageRing*>& rings);
101 bool isInteriorOnRight()
const;
108 void markInvalid(std::size_t index);
115 void markMatched(std::size_t index);
123 bool isKnown()
const;
131 bool isInvalid(std::size_t i)
const;
138 bool isInvalid()
const;
145 bool hasInvalid()
const;
153 bool isKnown(std::size_t i)
const;
181 std::size_t prev(std::size_t index)
const;
189 std::size_t next(std::size_t index)
const;
191 void createInvalidLines(
193 std::vector<std::unique_ptr<LineString>>& lines);
The internal representation of a list of coordinates inside a Geometry.
Definition: CoordinateSequence.h:56
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:216
Supplies a set of utility methods for building Geometry objects from CoordinateSequence or other Geom...
Definition: GeometryFactory.h:65
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:186
Definition: LineString.h:65
Models an OGC SFS LinearRing. A LinearRing is a LineString which is both closed and simple.
Definition: LinearRing.h:54
Represents a linear polygon, which may include holes.
Definition: Polygon.h:60
Basic namespace for all GEOS functionalities.
Definition: Angle.h:25