20#ifndef GEOS_IO_WKBWRITER_H
21#define GEOS_IO_WKBWRITER_H
23#include <geos/export.h>
25#include <geos/util/Machine.h>
72class GEOS_DLL WKBWriter {
87 WKBWriter(
int dims=2,
int bo=getMachineByteOrder(),
bool includeSRID=
false);
100 virtual int getOutputDimension()
const {
return defaultOutputDimension; }
109 virtual void setOutputDimension(
int newOutputDimension);
116 virtual int getByteOrder()
const {
return byteOrder; }
122 virtual void setByteOrder(
int newByteOrder);
129 virtual int getIncludeSRID()
const {
return includeSRID; }
135 virtual void setIncludeSRID(
int newIncludeSRID) { includeSRID = (0 == newIncludeSRID ? false :
true); }
159 int defaultOutputDimension;
166 std::ostream *outStream;
168 unsigned char buf[8];
188 void writeGeometryType(
int geometryType,
int SRID);
191 void writeSRID(
int SRID);
194 void writeByteOrder();
197 void writeInt(
int intValue);
The internal representation of a list of coordinates inside a Geometry.
Definition CoordinateSequence.h:59
Represents a collection of heterogeneous Geometry objects.
Definition GeometryCollection.h:56
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition Geometry.h:167
Definition LineString.h:70
Models an OGC SFS LinearRing.
Definition LinearRing.h:57
Models a collection of (}s.
Definition MultiLineString.h:51
Definition MultiPoint.h:56
Models a collection of Polygons.
Definition MultiPolygon.h:61
Represents a linear polygon, which may include holes.
Definition Polygon.h:67
Specifies the precision model of the Coordinate in a Geometry.
Definition PrecisionModel.h:87
void writeHEX(const geom::Geometry &g, std::ostream &os)
Write a Geometry to an ostream in binary hex format.
void write(const geom::Geometry &g, std::ostream &os)
Write a Geometry to an ostream.
Contains the Geometry interface hierarchy and supporting classes.
Definition IndexedNestedRingTester.h:26
Contains the interfaces for converting JTS objects to and from other formats.
Definition Geometry.h:56
Basic namespace for all GEOS functionalities.
Definition IndexedNestedRingTester.h:25