22#include <geos/export.h>
24#include <geos/io/ByteOrderDataInStream.h>
31#define BAD_GEOM_TYPE_MSG "Bad geometry type encountered in"
35#pragma warning(disable: 4251)
45class GeometryCollection;
54class CoordinateSequence;
88 void setFixStructure(
bool doFixStructure);
98 std::unique_ptr<geom::Geometry>
read(std::istream& is);
109 std::unique_ptr<geom::Geometry>
read(
const unsigned char* buf,
size_t size);
119 std::unique_ptr<geom::Geometry>
readHEX(std::istream& is);
127 static std::ostream&
printHEX(std::istream& is, std::ostream& os);
134 unsigned int inputDimension;
141 std::array<double, 4> ordValues;
143 std::unique_ptr<geom::Geometry> readGeometry();
145 std::unique_ptr<geom::Point> readPoint();
147 std::unique_ptr<geom::LineString> readLineString();
149 std::unique_ptr<geom::LinearRing> readLinearRing();
151 std::unique_ptr<geom::Polygon> readPolygon();
153 std::unique_ptr<geom::MultiPoint> readMultiPoint();
155 std::unique_ptr<geom::MultiLineString> readMultiLineString();
157 std::unique_ptr<geom::MultiPolygon> readMultiPolygon();
159 std::unique_ptr<geom::GeometryCollection> readGeometryCollection();
161 std::unique_ptr<geom::CoordinateSequence> readCoordinateSequence(
unsigned int);
163 void minMemSize(
int geomType, uint64_t size);
165 void readCoordinate();
Supplies a set of utility methods for building Geometry objects from CoordinateSequence or other Geom...
Definition: GeometryFactory.h:66
Allows reading an stream of primitive datatypes from an underlying istream, with the representation b...
Definition: ByteOrderDataInStream.h:40
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 > read(const unsigned char *buf, size_t size)
Reads a Geometry from a buffer.
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: geos.h:39