20#ifndef GEOS_IO_WKBREADER_H
21#define GEOS_IO_WKBREADER_H
23#include <geos/export.h>
25#include <geos/io/ByteOrderDataInStream.h>
32#define BAD_GEOM_TYPE_MSG "Bad geometry type encountered in"
36#pragma warning(disable: 4251)
46class GeometryCollection;
55class CoordinateSequence;
97 std::unique_ptr<geom::Geometry>
read(std::istream& is);
107 std::unique_ptr<geom::Geometry>
readHEX(std::istream& is);
115 static std::ostream&
printHEX(std::istream& is, std::ostream& os);
122 unsigned int inputDimension;
128 std::array<double, 4> ordValues;
130 std::unique_ptr<geom::Geometry> readGeometry();
132 std::unique_ptr<geom::Point> readPoint();
134 std::unique_ptr<geom::LineString> readLineString();
136 std::unique_ptr<geom::LinearRing> readLinearRing();
138 std::unique_ptr<geom::Polygon> readPolygon();
140 std::unique_ptr<geom::MultiPoint> readMultiPoint();
142 std::unique_ptr<geom::MultiLineString> readMultiLineString();
144 std::unique_ptr<geom::MultiPolygon> readMultiPolygon();
146 std::unique_ptr<geom::GeometryCollection> readGeometryCollection();
148 std::unique_ptr<geom::CoordinateSequence> readCoordinateSequence(
int);
150 void readCoordinate();
Supplies a set of utility methods for building Geometry objects from CoordinateSequence or other Geom...
Definition GeometryFactory.h:68
Allows reading an stream of primitive datatypes from an underlying istream, with the representation b...
Definition ByteOrderDataInStream.h:41
Reads a Geometry from Well-Known Binary format.
Definition WKBReader.h:80
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:26