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]);
GeomType
Each enumerated type is compatible with a Well-known Binary (WKB) type code.
Curve is an abstract class that represents 1-dimensional geometric objects stored as a sequence of co...
virtual double getLength() const
The length of this curve in the unit associated to its spatial reference system.
virtual te::dt::AbstractData * clone() const
It clones the linestring.
virtual bool isClosed() const =0
It returns true if the curve is closed (startPoint = endPoint).
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...
GeometryCollection & operator=(const GeometryCollection &rhs)
Assignment operator.
An Envelope defines a 2D rectangular region.
bool isClosed() const
It returns true if this MultiCurve is closed [StartPoint ( ) = EndPoint ( ) for each Curve in this Mu...
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".
Dimensionality getDimension() const
MultiCurves are 1-dimensional.
A base class for values that can be retrieved from the data access module.
MultiCurve is a class that represents a 1-dimensional GeometryCollection whose elements are curves...
Curve is an abstract class that represents 1-dimensional geometric objects stored as a sequence of co...
MultiCurve is a class that represents a 1-dimensional GeometryCollection whose elements are curves...
double getLength() const
It returns the Length of this MultiCurve which is equal to the sum of the lengths of the element Curv...
It is a collection of other geometric objects.
virtual MultiCurve & operator=(const MultiCurve &rhs)
Assignment operator.