GEOS
3.9.1dev
|
Reads a Geometry from Well-Known Binary format. More...
#include <WKBReader.h>
Public Member Functions | |
WKBReader (geom::GeometryFactory const &f) | |
WKBReader () | |
Inizialize parser with default GeometryFactory. More... | |
std::unique_ptr< geom::Geometry > | read (std::istream &is) |
Reads a Geometry from an istream. More... | |
std::unique_ptr< geom::Geometry > | readHEX (std::istream &is) |
Reads a Geometry from an istream in hex format. More... | |
Static Public Member Functions | |
static std::ostream & | printHEX (std::istream &is, std::ostream &os) |
Print WKB in HEX form to out stream. More... | |
Private Member Functions | |
std::unique_ptr< geom::Geometry > | readGeometry () |
std::unique_ptr< geom::Point > | readPoint () |
std::unique_ptr< geom::LineString > | readLineString () |
std::unique_ptr< geom::LinearRing > | readLinearRing () |
std::unique_ptr< geom::Polygon > | readPolygon () |
std::unique_ptr< geom::MultiPoint > | readMultiPoint () |
std::unique_ptr< geom::MultiLineString > | readMultiLineString () |
std::unique_ptr< geom::MultiPolygon > | readMultiPolygon () |
std::unique_ptr< geom::GeometryCollection > | readGeometryCollection () |
std::unique_ptr< geom::CoordinateSequence > | readCoordinateSequence (int) |
void | readCoordinate () |
WKBReader (const WKBReader &other)=delete | |
WKBReader & | operator= (const WKBReader &rhs)=delete |
Private Attributes | |
const geom::GeometryFactory & | factory |
unsigned int | inputDimension |
bool | hasZ |
bool | hasM |
ByteOrderDataInStream | dis |
std::array< double, 4 > | ordValues |
Reads a Geometry from Well-Known Binary format.
This class is designed to support reuse of a single instance to read multiple geometries. This class is not thread-safe; each thread should create its own instance.
The Well-known Binary format is defined in the OpenGIS Simple Features Specification for SQL. This implementation supports the extended WKB standard which allows representing 3-dimensional coordinates.
Definition at line 80 of file WKBReader.h.
geos::io::WKBReader::WKBReader | ( | geom::GeometryFactory const & | f | ) |
geos::io::WKBReader::WKBReader | ( | ) |
Inizialize parser with default GeometryFactory.
|
privatedelete |
|
static |
Print WKB in HEX form to out stream.
is | is the stream to read from |
os | is the stream to write to |
std::unique_ptr<geom::Geometry> geos::io::WKBReader::read | ( | std::istream & | is | ) |
Reads a Geometry from an istream.
is | the stream to read from |
IOException | |
ParseException |
|
private |
|
private |
|
private |
|
private |
std::unique_ptr<geom::Geometry> geos::io::WKBReader::readHEX | ( | std::istream & | is | ) |
Reads a Geometry from an istream in hex format.
is | the stream to read from |
IOException | |
ParseException |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Definition at line 126 of file WKBReader.h.
|
private |
Definition at line 119 of file WKBReader.h.
|
private |
Definition at line 124 of file WKBReader.h.
|
private |
Definition at line 123 of file WKBReader.h.
|
private |
Definition at line 122 of file WKBReader.h.
|
private |
Definition at line 128 of file WKBReader.h.