75 for(std::size_t i = 0; i < nGeoms; ++i)
89 const std::size_t m_nPts = visited.
size();
92 m_size += 9 + (16 * m_nPts);
95 m_size += (8 * m_nPts);
98 m_size += (8 * m_nPts);
143 for(std::size_t i = 0; i < nRings; ++i)
153 for(std::size_t i = 0; i < nPols; ++i)
164 visit((
const Polygon&)visited);
PolyhedralSurface is a contiguous collection of polygons, which share common boundary segments...
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.
int getCoordinateDimension() const
It returns the number of measurements or axes needed to describe a position in a coordinate system...
A LinearRing is a LineString that is both closed and simple.
Polygon * getPatchN(std::size_t i) const
It returns a polygon in this surface, the order is arbitrary.
static std::size_t size(const Geometry *geom)
It calculates the number of bytes required to encode the geometry in a WKB format.
PolyhedralSurface is a contiguous collection of polygons, which share common boundary segments...
MultiPoint is a GeometryCollection whose elements are restricted to points.
A point with a z-coordinate value and an associated measurement.
A class that computes the number of bytes necessary to encode a geometry in WKB.
A point with an associated measure.
TIN (triangulated irregular network) is a PolyhedralSurface consisting only of Triangle patches...
A LinearRing is a LineString that is both closed and simple.
MultiPoint is a GeometryCollection whose elements are restricted to points.
A point with z-coordinate value.
LineString is a curve with linear interpolation between points.
Triangle is a polygon with 3 distinct, non-collinear vertices and no interior boundary.
A point with x and y coordinate values.
MultiLineString is a MultiCurve whose elements are LineStrings.
virtual std::size_t getNPoints() const =0
it returns the number of points (vertexes) in the geometry.
MultiPolygon is a MultiSurface whose elements are Polygons.
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
Polygon is a subclass of CurvePolygon whose rings are defined by linear rings.
Geometry * getGeometryN(std::size_t i) const
It returns the n-th geometry in this GeometryCollection.
MultiLineString is a MultiCurve whose elements are LineStrings.
std::size_t getNumPatches() const
It returns the number of including polygons.
Polygon is a subclass of CurvePolygon whose rings are defined by linear rings.
virtual ReturnType accept(VisitorType &guest) const =0
It call the visit method from the guest object.
A class that computes the number of bytes necessary to encode a geometry in WKB.
std::size_t m_size
A counter for the number of bytes required to store a given geometry in WKB.
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.
A point with z-coordinate value.
void visit(const Curve &)
A point with a z-coordinate value and an associated measurement.
A point with an associated measure.
It is a collection of other geometric objects.
Curve * getRingN(std::size_t i) const
It returns the n-th ring for this curve polygon as a curve.
std::size_t size() const
It returns the number of points (vertexes) in the geometry.
WKBSize()
Not instantiable class.