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 CoordinateArraySequence;
43 class CoordinateSequenceFilter;
84 std::unique_ptr<LineString>
clone()
const 86 return std::unique_ptr<LineString>(cloneImpl());
89 std::unique_ptr<CoordinateSequence> getCoordinates()
const override;
94 virtual const Coordinate& getCoordinateN(std::size_t n)
const;
103 std::unique_ptr<CoordinateSequence> releaseCoordinates();
113 int getBoundaryDimension()
const override;
116 uint8_t getCoordinateDimension()
const override;
123 std::unique_ptr<Geometry> getBoundary()
const override;
125 bool isEmpty()
const override;
127 std::size_t getNumPoints()
const override;
129 virtual std::unique_ptr<Point> getPointN(std::size_t n)
const;
135 virtual std::unique_ptr<Point> getStartPoint()
const;
141 virtual std::unique_ptr<Point> getEndPoint()
const;
143 virtual bool isClosed()
const;
145 virtual bool isRing()
const;
147 std::string getGeometryType()
const override;
151 virtual bool isCoordinate(
Coordinate& pt)
const;
153 bool equalsExact(
const Geometry* other,
double tolerance = 0)
179 void normalize()
override;
182 int compareToSameClass(
const Geometry* ls)
const override;
184 const Coordinate* getCoordinate()
const override;
186 double getLength()
const override;
194 std::unique_ptr<LineString>
reverse()
const {
return std::unique_ptr<LineString>(reverseImpl()); }
216 Envelope::Ptr computeEnvelopeInternal()
const override;
218 CoordinateSequence::Ptr points;
221 getSortIndex()
const override 223 return SORTINDEX_LINESTRING;
228 void validateConstruction();
229 void normalizeClosed();
234 struct GEOS_DLL LineStringLT {
236 operator()(
const LineString* ls1,
const LineString* ls2)
const 238 return ls1->compareTo(ls2) < 0;
Geometry classes support the concept of applying a Geometry filter to the Geometry.
Definition: GeometryFilter.h:45
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:58
std::vector< const LineString * > ConstVect
A vector of const LineString pointers.
Definition: LineString.h:73
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
Geometry classes support the concept of applying a coordinate filter to every coordinate in the Geome...
Definition: CoordinateFilter.h:41
Definition: LineString.h:66
Supplies a set of utility methods for building Geometry objects from CoordinateSequence or other Geom...
Definition: GeometryFactory.h:66
std::unique_ptr< LineString > reverse() const
Definition: LineString.h:194
Basic namespace for all GEOS functionalities.
Definition: Angle.h:25
The internal representation of a list of coordinates inside a Geometry.
Definition: CoordinateSequence.h:44
LineString * cloneImpl() const override
Make a deep-copy of this Geometry.
Definition: LineString.h:212
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:84
DimensionType
Definition: Dimension.h:29
Definition: GeometryComponentFilter.h:41