22 #include <geos/export.h>
24 #include <geos/util/Machine.h>
25 #include <geos/io/OrdinateSet.h>
26 #include <geos/io/WKBConstants.h>
35 class CoordinateSequence;
39 class GeometryCollection;
45 class MultiLineString;
96 int bo = getMachineByteOrder(),
97 bool includeSRID =
false,
98 int flv = WKBConstants::wkbExtended);
112 getOutputDimension()
const
114 return defaultOutputDimension;
124 void setOutputDimension(uint8_t newOutputDimension);
141 void setByteOrder(
int newByteOrder);
149 getIncludeSRID()
const
159 setIncludeSRID(
bool newIncludeSRID)
161 includeSRID = newIncludeSRID;
178 void setFlavor(
int newFlavor);
205 uint8_t defaultOutputDimension;
215 std::ostream* outStream;
217 unsigned char buf[8];
223 void writeSimpleCurve(
const geom::SimpleCurve& ls);
226 void writeCompoundCurve(
const geom::CompoundCurve& curve);
231 void writeCurvePolygon(
const geom::CurvePolygon& p);
242 void writeGeometryType(
int geometryType,
int SRID);
245 void writeSRID(
int SRID);
248 void writeByteOrder();
251 void writeInt(
int intValue);
The internal representation of a list of coordinates inside a Geometry.
Definition: CoordinateSequence.h:56
Represents a collection of heterogeneous Geometry objects.
Definition: GeometryCollection.h:51
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:197
Represents a linear polygon, which may include holes.
Definition: Polygon.h:61
Utility class to manipulate a set of flags indicating whether X, Y, Z, or M dimensions are present....
Definition: OrdinateSet.h:29
Writes a Geometry into Well-Known Binary format.
Definition: WKBWriter.h:78
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: Angle.h:25