57 std::size_t n = m_geometries.size();
59 for(std::size_t i = 0; i < n; ++i)
61 Curve* curve =
static_cast<Curve*
>(m_geometries[i]);
75 std::size_t n = m_geometries.size();
77 for(std::size_t i = 0; i < n; ++i)
79 Curve* curve =
static_cast<Curve*
>(m_geometries[i]);
bool isClosed() const
It returns true if this MultiCurve is closed [StartPoint ( ) = EndPoint ( ) for each Curve in this Mu...
Dimensionality getDimension() const
MultiCurves are 1-dimensional.
double getLength() const
It returns the Length of this MultiCurve which is equal to the sum of the lengths of the element Curv...
virtual double getLength() const =0
The length of this curve in the unit associated to its spatial reference system.
MultiCurve is a class that represents a 1-dimensional GeometryCollection whose elements are curves...
GeometryCollection & operator=(const GeometryCollection &rhs)
Assignment operator.
Curve is an abstract class that represents 1-dimensional geometric objects stored as a sequence of co...
Dimensionality
From Wikipedia: "in mathematics, the dimension of an object is an intrinsic property, independent of the space in which the object may happen to be embedded".
TE_DEFINE_VISITABLE MultiCurve(std::size_t nGeom, GeomType t, int srid=0, Envelope *mbr=0)
It initializes the multi curve with the specified spatial reference system id and envelope...
GeomType
Each enumerated type is compatible with a Well-known Binary (WKB) type code.
A base class for values that can be retrieved from the data access module.
virtual te::dt::AbstractData * clone() const
It clones the linestring.
It is a collection of other geometric objects.
Curve is an abstract class that represents 1-dimensional geometric objects stored as a sequence of co...
virtual bool isClosed() const =0
It returns true if the curve is closed (startPoint = endPoint).
An Envelope defines a 2D rectangular region.
MultiCurve is a class that represents a 1-dimensional GeometryCollection whose elements are curves...
virtual MultiCurve & operator=(const MultiCurve &rhs)
Assignment operator.