GEOS: geos::WKTWriter Class Reference

- Main Page
- Namespaces
- Classes
- Files
- Related Pages

- Class List
- Class Hierarchy
- Class Members

# geos::WKTWriter Class Reference

Outputs the textual representation of a Geometry. See also WKTReader. More...

`#include <geos.h>`

List of all members.

## Public Member Functions
string | write (const Geometry *geometry)
| Returns WKT string for the given Geometry.

## Detailed Description

Outputs the textual representation of a Geometry. See also WKTReader.

The WKTWriter outputs coordinates rounded to the precision model. No more than the maximum number of necessary decimal places will be output.

The Well-known Text format is defined in the OpenGIS Simple Features Specification for SQL.

A non-standard "LINEARRING" tag is used for LinearRings. The WKT spec does not define a special tag for LinearRings. The standard tag to use is "LINESTRING".

See WKTReader for parsing.

The documentation for this class was generated from the following files:

- io.h
- WKTWriter.cpp