20 #ifndef GEOS_IO_WKBWRITER_H
21 #define GEOS_IO_WKBWRITER_H
23 #include <geos/export.h>
25 #include <geos/util/Machine.h>
33 class CoordinateSequence;
35 class GeometryCollection;
41 class MultiLineString;
88 WKBWriter(uint8_t dims = 2,
int bo = getMachineByteOrder(),
bool includeSRID =
false);
102 getOutputDimension()
const
104 return defaultOutputDimension;
114 virtual void setOutputDimension(uint8_t newOutputDimension);
131 virtual void setByteOrder(
int newByteOrder);
139 getIncludeSRID()
const
149 setIncludeSRID(
bool newIncludeSRID)
151 includeSRID = newIncludeSRID;
176 uint8_t defaultOutputDimension;
177 uint8_t outputDimension;
183 std::ostream* outStream;
185 unsigned char buf[8];
206 void writeGeometryType(
int geometryType,
int SRID);
209 void writeSRID(
int SRID);
212 void writeByteOrder();
215 void writeInt(
int intValue);
The internal representation of a list of coordinates inside a Geometry.
Definition: CoordinateSequence.h:58
Represents a collection of heterogeneous Geometry objects.
Definition: GeometryCollection.h:55
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:188
Definition: LineString.h:68
Represents a linear polygon, which may include holes.
Definition: Polygon.h:64
Writes a Geometry into Well-Known Binary format.
Definition: WKBWriter.h:73
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.
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:26