#include <geos.h>
Public Member Functions | |
string | write (const Geometry *geometry) |
Returns WKT string for the given Geometry. |
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.