23 #include <geos/export.h> 24 #include <geos/geom/Geometry.h> 25 #include <geos/geom/CoordinateSequence.h> 26 #include <geos/geom/Envelope.h> 27 #include <geos/geom/Dimension.h> 36 #pragma warning(disable: 4251) // warning C4251: needs to have dll-interface to be used by clients of class 42 class CoordinateSequenceFilter;
83 std::unique_ptr<LineString>
clone()
const 85 return std::unique_ptr<LineString>(cloneImpl());
88 std::unique_ptr<CoordinateSequence> getCoordinates()
const override;
93 virtual const Coordinate& getCoordinateN(std::size_t n)
const;
102 std::unique_ptr<CoordinateSequence> releaseCoordinates();
112 int getBoundaryDimension()
const override;
115 uint8_t getCoordinateDimension()
const override;
117 bool hasM()
const override;
119 bool hasZ()
const override;
126 std::unique_ptr<Geometry> getBoundary()
const override;
128 bool isEmpty()
const override;
130 std::size_t getNumPoints()
const override;
132 virtual std::unique_ptr<Point> getPointN(std::size_t n)
const;
138 virtual std::unique_ptr<Point> getStartPoint()
const;
144 virtual std::unique_ptr<Point> getEndPoint()
const;
146 virtual bool isClosed()
const;
148 virtual bool isRing()
const;
150 std::string getGeometryType()
const override;
154 virtual bool isCoordinate(
Coordinate& pt)
const;
156 bool equalsExact(
const Geometry* other,
double tolerance = 0)
159 bool equalsIdentical(
const Geometry* other)
const override;
184 void normalize()
override;
187 int compareToSameClass(
const Geometry* ls)
const override;
189 const CoordinateXY* getCoordinate()
const override;
191 double getLength()
const override;
199 std::unique_ptr<LineString>
reverse()
const {
return std::unique_ptr<LineString>(reverseImpl()); }
219 Envelope computeEnvelopeInternal()
const;
221 CoordinateSequence::Ptr points;
226 getSortIndex()
const override 228 return SORTINDEX_LINESTRING;
232 envelope = computeEnvelopeInternal();
237 void validateConstruction();
238 void normalizeClosed();
243 struct GEOS_DLL LineStringLT {
245 operator()(
const LineString* ls1,
const LineString* ls2)
const 247 return ls1->compareTo(ls2) < 0;
Geometry classes support the concept of applying a Geometry filter to the Geometry.
Definition: GeometryFilter.h:45
An Envelope defines a rectangulare region of the 2D coordinate plane.
Definition: Envelope.h:58
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:216
std::vector< const LineString * > ConstVect
A vector of const LineString pointers.
Definition: LineString.h:72
Interface for classes which provide operations that can be applied to the coordinates in a Coordinate...
Definition: CoordinateSequenceFilter.h:55
GeometryTypeId
Geometry types.
Definition: Geometry.h:73
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:186
const Envelope * getEnvelopeInternal() const override
Returns the minimum and maximum x and y values in this Geometry, or a null Envelope if this Geometry ...
Definition: LineString.h:201
Geometry classes support the concept of applying a coordinate filter to every coordinate in the Geome...
Definition: CoordinateFilter.h:43
Definition: LineString.h:65
Supplies a set of utility methods for building Geometry objects from CoordinateSequence or other Geom...
Definition: GeometryFactory.h:65
std::unique_ptr< LineString > reverse() const
Definition: LineString.h:199
Basic namespace for all GEOS functionalities.
Definition: Angle.h:25
The internal representation of a list of coordinates inside a Geometry.
Definition: CoordinateSequence.h:56
LineString * cloneImpl() const override
Make a deep-copy of this Geometry.
Definition: LineString.h:215
void geometryChangedAction() override
Notifies this Geometry that its Coordinates have been changed by an external party.
Definition: LineString.h:231
std::unique_ptr< LineString > clone() const
Creates and returns a full copy of this LineString object (including all coordinates contained by it)...
Definition: LineString.h:83
DimensionType
Definition: Dimension.h:29
Definition: GeometryComponentFilter.h:41