Basic implementation of MultiLineString objects. More...
#include <MultiLineString.h>
Public Member Functions | |
Dimension::DimensionType | getDimension () const |
Returns line dimension (1). | |
int | getBoundaryDimension () const |
Returns Dimension::False if all LineStrings in the collection are closed, 0 otherwise. | |
Geometry * | getBoundary () const |
Returns a (possibly empty) MultiPoint. | |
std::string | getGeometryType () const |
Return a string representation of this Geometry type. | |
virtual GeometryTypeId | getGeometryTypeId () const |
Return an integer representation of this Geometry type. | |
bool | isClosed () const |
bool | equalsExact (const Geometry *other, double tolerance=0) const |
Returns true if the two Geometrys are exactly equal, up to a specified tolerance. | |
Geometry * | clone () const |
MultiLineString * | reverse () const |
Protected Member Functions | |
MultiLineString (std::vector< Geometry * > *newLines, const GeometryFactory *newFactory) | |
Constructs a MultiLineString . | |
MultiLineString (const MultiLineString &mp) | |
Friends | |
class | GeometryFactory |
Basic implementation of MultiLineString objects.
geos::geom::MultiLineString::MultiLineString | ( | std::vector< Geometry * > * | newLines, | |
const GeometryFactory * | newFactory | |||
) | [protected] |
Constructs a MultiLineString
.
newLines | The LineStrings s for this MultiLineString , or null or an empty array to create the empty geometry. Elements may be empty LineString s, but not null s. |
Constructed object will take ownership of the vector and its elements.
newFactory | The GeometryFactory used to create this geometry. Caller must keep the factory alive for the life-time of the constructed MultiLineString. |
Geometry* geos::geom::MultiLineString::clone | ( | ) | const [virtual] |
Creates and returns a full copy of this GeometryCollection object. (including all coordinates contained by it).
Reimplemented from geos::geom::GeometryCollection.
MultiLineString* geos::geom::MultiLineString::reverse | ( | ) | const |
Creates a MultiLineString in the reverse order to this object. Both the order of the component LineStrings and the order of their coordinate sequences are reversed.