27 #include "../core/translator/Translator.h" 28 #include "../geometry/GeometryCollection.h" 29 #include "../geometry/LinearRing.h" 30 #include "../geometry/LineString.h" 31 #include "../geometry/MultiLineString.h" 32 #include "../geometry/MultiPoint.h" 33 #include "../geometry/MultiPolygon.h" 34 #include "../geometry/PointM.h" 35 #include "../geometry/PointZ.h" 36 #include "../geometry/PointZM.h" 37 #include "../geometry/Polygon.h" 64 m_size += 4 + (5 * ngeoms);
66 for(
unsigned int i = 0; i < ngeoms; ++i)
137 for(std::size_t i = 0; i < nrings; ++i)
std::size_t getNumRings() const
It returns the number of rings in this CurvePolygon.
std::size_t getNumGeometries() const
It returns the number of geometries in this GeometryCollection.
MultiPolygon is a MultiSurface whose elements are Polygons.
virtual ReturnType accept(VisitorType &guest) const =0
It call the visit method from the guest object.
A LinearRing is a LineString that is both closed and simple.
MultiPoint is a GeometryCollection whose elements are restricted to points.
LineString is a curve with linear interpolation between points.
A point with x and y coordinate values.
std::size_t getNPoints() const
It returns the number of points (vertexes) in the linestring.
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
Geometry * getGeometryN(std::size_t i) const
It returns the n-th geometry in this GeometryCollection.
MultiLineString is a MultiCurve whose elements are LineStrings.
Polygon is a subclass of CurvePolygon whose rings are defined by linear rings.
void visit(const te::gm::Curve &)
const double & getZ(std::size_t i) const
It returns the n-th z coordinate value.
const double & getM(std::size_t i) const
It returns the n-th m measure value.
It is a collection of other geometric objects.
static std::size_t getEWKBSize(const te::gm::Geometry *g)
Curve * getRingN(std::size_t i) const
It returns the n-th ring for this curve polygon as a curve.