59 std::size_t n = m_geometries.size();
61 for(std::size_t i = 0; i < n; ++i)
96 std::size_t n = m_geometries.size();
98 for(std::size_t i = 0; i < n; ++i)
GeomType
Each enumerated type is compatible with a Well-known Binary (WKB) type code.
Point * getCentroid() const
It returns the mathematical centroid for this MultiSurface as a point.
GeometryCollection & operator=(const GeometryCollection &rhs)
Assignment operator.
An utility struct for representing 2D coordinates.
double getPerimeter() const
It returns the length of the boundary for the surface.
Dimensionality getDimension() const
MultiSurface is 2-dimenional.
virtual te::dt::AbstractData * clone() const
It clones the multi surface.
Coord2D * getCoordOnSurface() const
It returns a coordinate guaranteed to be on this MultiSurface.
Coord2D * getCentroidCoord() const
It returns the mathematical centroid for this MultiSurface as a coordinate.
virtual MultiSurface & operator=(const MultiSurface &rhs)
Assignment operator.
A point with x and y coordinate values.
An Envelope defines a 2D rectangular region.
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".
Surface is an abstract class that represents a 2-dimensional geometric objects.
A base class for values that can be retrieved from the data access module.
virtual double getPerimeter() const =0
It returns the length of the boundary for the surface.
Point * getPointOnSurface() const
It returns a point guaranteed to be on this MultiSurface.
virtual double getArea() const =0
It returns the area of the surface measured in the spatial reference system of the surface...
double getArea() const
It returns the area of this MultiSurface, as measured in the spatial reference system of this multisu...
MultiSurface is a class that represents a 2-dimensional GeometryCollection whose elements are surface...
TE_DEFINE_VISITABLE MultiSurface(std::size_t nGeom, GeomType t, int srid=0, Envelope *mbr=0)
It initializes the Geometry with the specified spatial reference system id and envelope.
MultiSurface is a class that represents a 2-dimensional GeometryCollection whose elements are surface...
It is a collection of other geometric objects.
Surface is an abstract class that represents a 2-dimensional geometric objects.