20#ifndef GEOS_IO_WKBREADER_H
21#define GEOS_IO_WKBREADER_H
23#include <geos/export.h>
25#include <geos/geom/GeometryFactory.h>
26#include <geos/io/ByteOrderDataInStream.h>
32#define BAD_GEOM_TYPE_MSG "Bad geometry type encountered in"
36#pragma warning(disable: 4251)
46class GeometryCollection;
96 std::unique_ptr<geom::Geometry>
read(std::istream& is);
106 std::unique_ptr<geom::Geometry>
readHEX(std::istream& is);
114 static std::ostream&
printHEX(std::istream& is, std::ostream& os);
121 unsigned int inputDimension;
123 ByteOrderDataInStream dis;
125 std::vector<double> ordValues;
127 std::unique_ptr<geom::Geometry> readGeometry();
129 std::unique_ptr<geom::Point> readPoint();
131 std::unique_ptr<geom::LineString> readLineString();
133 std::unique_ptr<geom::LinearRing> readLinearRing();
135 std::unique_ptr<geom::Polygon> readPolygon();
137 std::unique_ptr<geom::MultiPoint> readMultiPoint();
139 std::unique_ptr<geom::MultiLineString> readMultiLineString();
141 std::unique_ptr<geom::MultiPolygon> readMultiPolygon();
143 std::unique_ptr<geom::GeometryCollection> readGeometryCollection();
145 std::unique_ptr<geom::CoordinateSequence> readCoordinateSequence(
int);
147 void readCoordinate();
Supplies a set of utility methods for building Geometry objects from CoordinateSequence or other Geom...
Definition: GeometryFactory.h:68
Reads a Geometry from Well-Known Binary format.
Definition: WKBReader.h:79
static std::ostream & printHEX(std::istream &is, std::ostream &os)
Print WKB in HEX form to out stream.
WKBReader()
Inizialize parser with default GeometryFactory.
std::unique_ptr< geom::Geometry > readHEX(std::istream &is)
Reads a Geometry from an istream in hex format.
std::unique_ptr< geom::Geometry > read(std::istream &is)
Reads a Geometry from an istream.
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:25