All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
te::pgis::EWKBReader Class Reference

An utility class for reading a PostGIS EWKB. More...

#include <EWKBReader.h>

Inheritance diagram for te::pgis::EWKBReader:
te::common::Static

Static Public Member Functions

static te::gm::Geometryread (const char *ewkb)
 It returns a valid geometry from a given EWKB. More...
 
static te::gm::GeometryreadHex (const char *hewkb)
 It returns a valid geometry from a given hex-encoded EWKB. More...
 

Static Private Member Functions

static te::gm::GeometrygetGeometry (const char *ewkb, const char **endptr)
 
static te::gm::GeometryCollectiongetGeometryCollection (const char *ewkb, const char **endptr)
 
static te::gm::LinearRinggetLinearRing (const char *ewkb, te::gm::GeomType t, int srid, char wkbByteOrder, const char **endptr)
 
static te::gm::LineStringgetLineString (const char *ewkb, const char **endptr)
 
static te::gm::PointgetPoint (const char *ewkb, const char **endptr)
 
static te::gm::PolygongetPolygon (const char *ewkb, const char **endptr)
 

Detailed Description

An utility class for reading a PostGIS EWKB.

Definition at line 46 of file EWKBReader.h.

Member Function Documentation

te::gm::LinearRing * EWKBReader::getLinearRing ( const char *  ewkb,
te::gm::GeomType  t,
int  srid,
char  wkbByteOrder,
const char **  endptr 
)
staticprivate

Definition at line 332 of file EWKBReader.cpp.

References te::gm::LineString::setSRID().

te::gm::LineString * EWKBReader::getLineString ( const char *  ewkb,
const char **  endptr 
)
staticprivate
te::gm::Point * EWKBReader::getPoint ( const char *  ewkb,
const char **  endptr 
)
staticprivate
te::gm::Geometry * EWKBReader::read ( const char *  ewkb)
static

It returns a valid geometry from a given EWKB.

Parameters
ewkbA valid EWKB geometry.
Returns
A geometry created from reading the EWKB. The caller of this method will take the ownership of the returned geometry.

Definition at line 134 of file EWKBReader.cpp.

References getGeometry().

Referenced by te::pgis::DataSet::getGeometry(), and readHex().

te::gm::Geometry * EWKBReader::readHex ( const char *  hewkb)
static

It returns a valid geometry from a given hex-encoded EWKB.

Parameters
hewkbAn hex-encoded EWKB geometry.
Returns
A geometry created from reading the HEWKB. The caller of this method will take the ownership of the returned geometry.

Definition at line 141 of file EWKBReader.cpp.

References te::common::Hex2Binary(), and read().


The documentation for this class was generated from the following files: