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);
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);
205 #endif // #ifndef GEOS_IO_WKBWRITER_H Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:167
Definition: LineString.h:70
Represents a linear polygon, which may include holes.
Definition: Polygon.h:66
Writes a Geometry into Well-Known Binary format.
Definition: WKBWriter.h:72
Represents a collection of heterogeneous Geometry objects.
Definition: GeometryCollection.h:56
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:25
The internal representation of a list of coordinates inside a Geometry.
Definition: CoordinateSequence.h:59