GEOS 3.14.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) | |
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. | |
bool | isCurved () const override |
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 deep-copy 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 OGC-style LineString
.
A LineString consists of a sequence of two or more vertices, along with all points along the linearly-interpolated 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 self-intersect). 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)
|
inlineoverrideprotectedvirtual |
Make a deep-copy of this Geometry.
Implements geos::geom::Geometry.
|
inlineoverrideprotectedvirtual |
Notifies this Geometry that its Coordinates have been changed by an external party.
Implements geos::geom::Geometry.
|
overridevirtual |
Return a string representation of this Geometry type.
Implements geos::geom::Geometry.
|
overridevirtual |
Return an integer representation of this Geometry type.
Implements geos::geom::Geometry.
|
overridevirtual |
Returns the length of this Geometry.
Reimplemented from geos::geom::Geometry.
|
inlineoverrideprotectedvirtual |
Implements geos::geom::Geometry.
|
inline |
Creates a LineString whose coordinates are in the reverse order of this object's
|
overrideprotectedvirtual |
Make a geometry with coordinates in reverse order.
Implements geos::geom::Geometry.