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