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 AbstractPoint &) | 
| void | visit (const Point &visited) | 
| void | visit (const PointM &visited) | 
| void | visit (const PointZ &visited) | 
| void | visit (const PointZM &visited) | 
| void | visit (const PointKd &) | 
| 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 | 
Not instantiable class.
Definition at line 42 of file WKBSize.cpp.
      
  | 
  private | 
Destructor.
Definition at line 47 of file WKBSize.cpp.
      
  | 
  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 51 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 60 of file WKBSize.cpp.
References te::common::BaseVisitable< T, R >::accept(), and m_size.
      
  | 
  inlineprotectedvirtual | 
Implements te::gm::Visitor.
      
  | 
  inlineprotectedvirtual | 
Implements te::gm::Visitor.
      
  | 
  protectedvirtual | 
Implements te::gm::Visitor.
Definition at line 69 of file WKBSize.cpp.
References te::common::BaseVisitable< T, R >::accept(), te::gm::GeometryCollection::getGeometryN(), and te::gm::GeometryCollection::getNumGeometries().
      
  | 
  protectedvirtual | 
Implements te::gm::Visitor.
Definition at line 82 of file WKBSize.cpp.
      
  | 
  protectedvirtual | 
Implements te::gm::Visitor.
Definition at line 87 of file WKBSize.cpp.
References te::gm::LineString::getM(), te::gm::LineString::getZ(), and te::gm::LineString::size().
      
  | 
  inlineprotectedvirtual | 
Implements te::gm::Visitor.
      
  | 
  protectedvirtual | 
Implements te::gm::Visitor.
Definition at line 101 of file WKBSize.cpp.
      
  | 
  protectedvirtual | 
Implements te::gm::Visitor.
Definition at line 106 of file WKBSize.cpp.
      
  | 
  protectedvirtual | 
Implements te::gm::Visitor.
Definition at line 111 of file WKBSize.cpp.
      
  | 
  inlineprotectedvirtual | 
Implements te::gm::Visitor.
      
  | 
  inlineprotectedvirtual | 
Implements te::gm::Visitor.
      
  | 
  protectedvirtual | 
Implements te::gm::Visitor.
Definition at line 116 of file WKBSize.cpp.
      
  | 
  protectedvirtual | 
Implements te::gm::Visitor.
Definition at line 121 of file WKBSize.cpp.
      
  | 
  protectedvirtual | 
Implements te::gm::Visitor.
Definition at line 126 of file WKBSize.cpp.
      
  | 
  protectedvirtual | 
Implements te::gm::Visitor.
Definition at line 131 of file WKBSize.cpp.
      
  | 
  inlineprotectedvirtual | 
Implements te::gm::Visitor.
      
  | 
  protectedvirtual | 
Implements te::gm::Visitor.
Definition at line 136 of file WKBSize.cpp.
References te::gm::Geometry::getCoordinateDimension(), te::gm::Geometry::getNPoints(), te::gm::CurvePolygon::getNumRings(), and te::gm::CurvePolygon::getRingN().
      
  | 
  protectedvirtual | 
Implements te::gm::Visitor.
Definition at line 147 of file WKBSize.cpp.
References te::gm::PolyhedralSurface::getNumPatches(), and te::gm::PolyhedralSurface::getPatchN().
      
  | 
  inlineprotectedvirtual | 
Implements te::gm::Visitor.
      
  | 
  protectedvirtual | 
Implements te::gm::Visitor.
Definition at line 157 of file WKBSize.cpp.
      
  | 
  protectedvirtual | 
Implements te::gm::Visitor.
Definition at line 162 of file WKBSize.cpp.
      
  | 
  inlineprotectedvirtual | 
Implements te::gm::Visitor.
      
  | 
  inlineprotectedvirtual | 
Implements te::gm::Visitor.
      
  | 
  inlineprotectedvirtual | 
Implements te::gm::Visitor.
      
  | 
  private |