21 #ifndef GEOS_GEOS_LINESTRING_H 22 #define GEOS_GEOS_LINESTRING_H 38 #pragma warning(disable: 4251) // warning C4251: needs to have dll-interface to be used by clients of class 44 class CoordinateArraySequence;
45 class CoordinateSequenceFilter;
86 std::unique_ptr<Geometry> clone()
const override;
88 std::unique_ptr<CoordinateSequence> getCoordinates()
const override;
93 virtual const Coordinate& getCoordinateN(
size_t n)
const;
103 int getBoundaryDimension()
const override;
106 uint8_t getCoordinateDimension()
const override;
113 std::unique_ptr<Geometry> getBoundary()
const override;
115 bool isEmpty()
const override;
117 std::size_t getNumPoints()
const override;
119 virtual std::unique_ptr<Point> getPointN(std::size_t n)
const;
125 virtual std::unique_ptr<Point> getStartPoint()
const;
131 virtual std::unique_ptr<Point> getEndPoint()
const;
133 virtual bool isClosed()
const;
135 virtual bool isRing()
const;
137 std::string getGeometryType()
const override;
141 virtual bool isCoordinate(
Coordinate& pt)
const;
143 bool equalsExact(
const Geometry* other,
double tolerance = 0)
169 void normalize()
override;
172 int compareToSameClass(
const Geometry* ls)
const override;
174 const Coordinate* getCoordinate()
const override;
176 double getLength()
const override;
184 std::unique_ptr<Geometry> reverse()
const override;
211 void validateConstruction();
212 void normalizeClosed();
226 inline std::unique_ptr<Geometry>
229 return std::unique_ptr<Geometry>(
new LineString(*
this));
239 #endif // ndef GEOS_GEOS_LINESTRING_H CoordinateSequence::Ptr points
Geometry classes support the concept of applying a Geometry filter to the Geometry.
std::unique_ptr< Geometry > clone() const override
Creates and returns a full copy of this LineString object (including all coordinates contained by it)...
Coordinate is the lightweight class used to store coordinates.
std::vector< const LineString * > ConstVect
A vector of const LineString pointers.
Interface for classes which provide operations that can be applied to the coordinates in a Coordinate...
GeometryTypeId
Geometry types.
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Geometry classes support the concept of applying a coordinate filter to every coordinate in the Geome...
std::unique_ptr< CoordinateSequence > Ptr
virtual int compareTo(const Geometry *geom) const
Comparator for sorting geometry.
int getSortIndex() const override
Supplies a set of utility methods for building Geometry objects from CoordinateSequence or other Geom...
Basic namespace for all GEOS functionalities.
The internal representation of a list of coordinates inside a Geometry.
std::unique_ptr< Envelope > Ptr
bool operator()(const LineString *ls1, const LineString *ls2) const