GEOS
3.13.0dev

#include <LineString.h>
Public Types  
typedef std::vector< const LineString * >  ConstVect 
A vector of const LineString pointers.  
Public Member Functions  
std::unique_ptr< LineString >  clone () const 
Creates and returns a full copy of this LineString object (including all coordinates contained by it) More...  
std::string  getGeometryType () const override 
Return a string representation of this Geometry type.  
GeometryTypeId  getGeometryTypeId () const override 
Return an integer representation of this Geometry type.  
double  getLength () const override 
Returns the length of this Geometry.  
std::unique_ptr< LineString >  reverse () const 
Protected Member Functions  
LineString (const LineString &ls)  
LineString (CoordinateSequence::Ptr &&pts, const GeometryFactory &newFactory)  
Constructs a LineString taking ownership the given CoordinateSequence.  
LineString *  cloneImpl () const override 
Make a deepcopy of this Geometry.  
LineString *  reverseImpl () const override 
Make a geometry with coordinates in reverse order.  
int  getSortIndex () const override 
void  geometryChangedAction () override 
Notifies this Geometry that its Coordinates have been changed by an external party.  
Friends  
class  GeometryFactory 
Models an OGCstyle LineString
.
A LineString consists of a sequence of two or more vertices, along with all points along the linearlyinterpolated curves (line segments) between each pair of consecutive vertices. Consecutive vertices may be equal. The line segments in the line may intersect each other (in other words, the linestring may "curl back" in itself and selfintersect). Linestrings with exactly two identical points are invalid.
A linestring must have either 0 or 2 or more points. If these conditions are not met, the constructors throw an util::IllegalArgumentException.

inline 
Creates and returns a full copy of this LineString object (including all coordinates contained by it)

inline 
Creates a LineString whose coordinates are in the reverse order of this object's