56 for(std::size_t i = 0; i < n; ++i)
93 for(std::size_t i = 0; i < n; ++i)
GeomType
Each enumerated type is compatible with a Well-known Binary (WKB) type code.
virtual double getPerimeter() const =0
It returns the length of the boundary for the surface.
Point * getCentroid() const
It returns the mathematical centroid for this MultiSurface as a point.
An utility struct for representing 2D coordinates.
double getPerimeter() const
It returns the length of the boundary for the surface.
virtual double getArea() const =0
It returns the area of the surface measured in the spatial reference system of 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.
std::vector< Geometry * > m_geometries
The array of geometries that forms the collection.
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.
Point * getPointOnSurface() const
It returns a point guaranteed to be on this MultiSurface.
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.