23#include <geos/export.h>
30#pragma warning(disable: 4251)
37class CoordinateSequence;
39class GeometryCollection;
95 void writeFormatted(
const geom::Geometry* geometry, Writer* writer);
164 getOutputDimension()
const
166 return defaultOutputDimension;
176 void setOutputDimension(uint8_t newOutputDimension);
182 void appendGeometryTaggedText(
const geom::Geometry* geometry,
int level, Writer* writer);
184 void appendPointTaggedText(
186 int level, Writer* writer);
188 void appendLineStringTaggedText(
190 int level, Writer* writer);
192 void appendLinearRingTaggedText(
194 int level, Writer* writer);
196 void appendPolygonTaggedText(
198 int level, Writer* writer);
200 void appendMultiPointTaggedText(
202 int level, Writer* writer);
204 void appendMultiLineStringTaggedText(
206 int level, Writer* writer);
208 void appendMultiPolygonTaggedText(
210 int level, Writer* writer);
212 void appendGeometryCollectionTaggedText(
214 int level, Writer* writer);
222 std::string writeNumber(
double d)
const;
224 void appendLineStringText(
226 int level,
bool doIndent, Writer* writer);
228 void appendPolygonText(
230 int level,
bool indentFirst, Writer* writer);
232 void appendMultiPointText(
234 int level, Writer* writer);
236 void appendMultiLineStringText(
238 int level,
bool indentFirst, Writer* writer);
240 void appendMultiPolygonText(
242 int level, Writer* writer);
244 void appendGeometryCollectionText(
246 int level, Writer* writer);
258 int roundingPrecision;
264 uint8_t defaultOutputDimension;
265 uint8_t outputDimension;
269 const geom::Geometry* geometry,
270 bool isFormatted, Writer* writer);
272 void indent(
int level, Writer* writer)
const;
The internal representation of a list of coordinates inside a Geometry.
Definition: CoordinateSequence.h:44
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:58
Represents a collection of heterogeneous Geometry objects.
Definition: GeometryCollection.h:52
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:186
Definition: LineString.h:66
Models an OGC SFS LinearRing. A LinearRing is a LineString which is both closed and simple.
Definition: LinearRing.h:55
Models a collection of LineStrings.
Definition: MultiLineString.h:50
Definition: MultiPoint.h:51
Definition: MultiPolygon.h:59
Represents a linear polygon, which may include holes.
Definition: Polygon.h:61
Outputs the textual representation of a Geometry. See also WKTReader.
Definition: WKTWriter.h:79
static std::string toPoint(const geom::Coordinate &p0)
static std::string toLineString(const geom::Coordinate &p0, const geom::Coordinate &p1)
void setOld3D(bool useOld3D)
Definition: WKTWriter.h:153
void setRoundingPrecision(int p0)
std::string write(const geom::Geometry *geometry)
Returns WKT string for the given Geometry.
static std::string toLineString(const geom::CoordinateSequence &seq)
Basic namespace for all GEOS functionalities.
Definition: geos.h:39