A class that computes the number of bytes necessary to encode a geometry in WKB. More...
#include <WKBSize.h>
Static Public Member Functions | |
| static std::size_t | size (const Geometry *geom) |
| It calculates the number of bytes required to encode the geometry in a WKB format. More... | |
| static std::size_t | size (const Geometry &geom) |
| It calculates the number of bytes required to encode the geometry in a WKB format. More... | |
Protected Member Functions | |
| void | visit (const Curve &) |
| void | visit (const Geometry &) |
| void | visit (const GeometryCollection &visited) |
| void | visit (const LinearRing &visited) |
| void | visit (const LineString &visited) |
| void | visit (const MultiCurve &) |
| void | visit (const MultiLineString &visited) |
| void | visit (const MultiPoint &visited) |
| void | visit (const MultiPolygon &visited) |
| void | visit (const MultiSurface &) |
| void | visit (const Point &visited) |
| void | visit (const Polygon &visited) |
| void | visit (const PolyhedralSurface &visited) |
| void | visit (const Surface &) |
| void | visit (const TIN &visited) |
| void | visit (const Triangle &visited) |
| void | visit (const CircularString &) |
| void | visit (const CompoundCurve &) |
| void | visit (const CurvePolygon &) |
Private Member Functions | |
| WKBSize () | |
| Not instantiable class. More... | |
| ~WKBSize () | |
| Destructor. More... | |
Private Attributes | |
| std::size_t | m_size |
| A counter for the number of bytes required to store a given geometry in WKB. More... | |
A class that computes the number of bytes necessary to encode a geometry in WKB.
|
private |
|
privatedefault |
Destructor.
Referenced by WKBSize().
|
static |
It calculates the number of bytes required to encode the geometry in a WKB format.
| geom | The geometry to calculate the WKB size. |
Definition at line 47 of file WKBSize.cpp.
References te::common::BaseVisitable< T, R >::accept(), and m_size.
Referenced by te::gm::Geometry::asBinary(), and te::gm::Geometry::getWkbSize().
|
static |
It calculates the number of bytes required to encode the geometry in a WKB format.
| geom | The geometry to calculate the WKB size. |
Definition at line 56 of file WKBSize.cpp.
References te::common::BaseVisitable< T, R >::accept(), and m_size.
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
Implements te::gm::Visitor.
|
protectedvirtual |
Implements te::gm::Visitor.
Definition at line 65 of file WKBSize.cpp.
References te::common::BaseVisitable< T, R >::accept(), te::gm::GeometryCollection::getGeometryN(), te::gm::GeometryCollection::getNumGeometries(), and m_size.
|
protectedvirtual |
|
protectedvirtual |
Implements te::gm::Visitor.
Definition at line 83 of file WKBSize.cpp.
References te::gm::LineString::getM(), te::gm::LineString::getZ(), m_size, and te::gm::LineString::size().
|
inlineprotectedvirtual |
Implements te::gm::Visitor.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
inlineprotectedvirtual |
Implements te::gm::Visitor.
|
protectedvirtual |
Implements te::gm::Visitor.
Definition at line 112 of file WKBSize.cpp.
References te::gm::Geometry::getGeomTypeId(), m_size, te::gm::PointMType, te::gm::PointType, and te::gm::PointZType.
|
protectedvirtual |
Implements te::gm::Visitor.
Definition at line 128 of file WKBSize.cpp.
References te::gm::Geometry::getCoordinateDimension(), te::gm::Geometry::getNPoints(), te::gm::CurvePolygon::getNumRings(), te::gm::CurvePolygon::getRingN(), and m_size.
|
protectedvirtual |
Implements te::gm::Visitor.
Definition at line 139 of file WKBSize.cpp.
References te::gm::PolyhedralSurface::getNumPatches(), te::gm::PolyhedralSurface::getPatchN(), m_size, and visit().
|
inlineprotectedvirtual |
Implements te::gm::Visitor.
|
protectedvirtual |
|
protectedvirtual |
|
inlineprotectedvirtual |
Implements te::gm::Visitor.
|
inlineprotectedvirtual |
Implements te::gm::Visitor.
|
inlineprotectedvirtual |
Implements te::gm::Visitor.
|
private |