20 #ifndef GEOS_IO_WKBWRITER_H
21 #define GEOS_IO_WKBWRITER_H
23 #include <geos/export.h>
25 #include <geos/util/Machine.h>
32 class CoordinateSequence;
34 class GeometryCollection;
40 class MultiLineString;
87 WKBWriter(
int dims = 2,
int bo = getMachineByteOrder(),
bool includeSRID =
false);
101 getOutputDimension()
const
103 return defaultOutputDimension;
113 virtual void setOutputDimension(
int newOutputDimension);
130 virtual void setByteOrder(
int newByteOrder);
138 getIncludeSRID()
const
148 setIncludeSRID(
int newIncludeSRID)
150 includeSRID = (0 == newIncludeSRID ? false :
true);
175 int defaultOutputDimension;
182 std::ostream* outStream;
184 unsigned char buf[8];
204 void writeGeometryType(
int geometryType,
int SRID);
207 void writeSRID(
int SRID);
210 void writeByteOrder();
213 void writeInt(
int intValue);
221 #endif // #ifndef GEOS_IO_WKBWRITER_H
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:25
Represents a linear polygon, which may include holes.
Definition: Polygon.h:64
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:188
Represents a collection of heterogeneous Geometry objects.
Definition: GeometryCollection.h:55
The internal representation of a list of coordinates inside a Geometry.
Definition: CoordinateSequence.h:58
Writes a Geometry into Well-Known Binary format.
Definition: WKBWriter.h:72
Definition: LineString.h:68