A class that serializes a geometry to the WKT format.
More...
#include <WKTWriter.h>
|
| WKTWriter (std::ostream &o) |
| It constructs a new WKT writer.
|
|
void | write (const Geometry &geom) |
| It serializes the geometry to a WKT representation.
|
|
void | write (const Geometry *geom) |
| It serializes the geometry to a WKT representation.
|
|
| ~WKTWriter () |
| Destructor.
|
|
|
static void | write (const Geometry &geom, std::ostream &o) |
| It serializes the geometry to a WKT representation.
|
|
static void | write (const Geometry *geom, std::ostream &o) |
| It serializes the geometry to a WKT representation.
|
|
|
std::ostream & | m_ostream |
| The output stream used to serialize the geometry to WKT.
|
|
bool | m_tagged |
| This flag controls how geometry are write to the output stream.
|
|
A class that serializes a geometry to the WKT format.
- See also
- WKTReader
Definition at line 54 of file WKTWriter.h.
◆ WKTWriter()
te::gm::WKTWriter::WKTWriter |
( |
std::ostream & |
o | ) |
|
It constructs a new WKT writer.
- Parameters
-
o | An output stream where we will write the wkt. |
◆ ~WKTWriter()
te::gm::WKTWriter::~WKTWriter |
( |
| ) |
|
◆ visit() [1/19]
◆ visit() [2/19]
◆ visit() [3/19]
virtual void te::gm::WKTWriter::visit |
( |
const Curve & |
| ) |
|
|
inlineprotectedvirtual |
◆ visit() [4/19]
◆ visit() [5/19]
virtual void te::gm::WKTWriter::visit |
( |
const Geometry & |
| ) |
|
|
inlineprotectedvirtual |
◆ visit() [6/19]
◆ visit() [7/19]
void te::gm::WKTWriter::visit |
( |
const LinearRing & |
visited | ) |
|
|
protectedvirtual |
◆ visit() [8/19]
void te::gm::WKTWriter::visit |
( |
const LineString & |
visited | ) |
|
|
protectedvirtual |
◆ visit() [9/19]
virtual void te::gm::WKTWriter::visit |
( |
const MultiCurve & |
| ) |
|
|
inlineprotectedvirtual |
◆ visit() [10/19]
◆ visit() [11/19]
void te::gm::WKTWriter::visit |
( |
const MultiPoint & |
visited | ) |
|
|
protectedvirtual |
◆ visit() [12/19]
void te::gm::WKTWriter::visit |
( |
const MultiPolygon & |
visited | ) |
|
|
protectedvirtual |
◆ visit() [13/19]
virtual void te::gm::WKTWriter::visit |
( |
const MultiSurface & |
| ) |
|
|
inlineprotectedvirtual |
◆ visit() [14/19]
void te::gm::WKTWriter::visit |
( |
const Point & |
visited | ) |
|
|
protectedvirtual |
◆ visit() [15/19]
void te::gm::WKTWriter::visit |
( |
const Polygon & |
visited | ) |
|
|
protectedvirtual |
◆ visit() [16/19]
◆ visit() [17/19]
virtual void te::gm::WKTWriter::visit |
( |
const Surface & |
| ) |
|
|
inlineprotectedvirtual |
◆ visit() [18/19]
void te::gm::WKTWriter::visit |
( |
const TIN & |
visited | ) |
|
|
protectedvirtual |
◆ visit() [19/19]
void te::gm::WKTWriter::visit |
( |
const Triangle & |
visited | ) |
|
|
protectedvirtual |
◆ write() [1/4]
void te::gm::WKTWriter::write |
( |
const Geometry & |
geom | ) |
|
It serializes the geometry to a WKT representation.
- Parameters
-
geom | The geometry to be serialized. |
- Note
- You must call reset in successive calls to this method.
◆ write() [2/4]
static void te::gm::WKTWriter::write |
( |
const Geometry & |
geom, |
|
|
std::ostream & |
o |
|
) |
| |
|
static |
It serializes the geometry to a WKT representation.
- Parameters
-
geom | The geometry to be serialized. |
o | An output stream where we will write the wkt. |
◆ write() [3/4]
void te::gm::WKTWriter::write |
( |
const Geometry * |
geom | ) |
|
It serializes the geometry to a WKT representation.
- Parameters
-
geom | The geometry to be serialized. |
- Note
- You must call reset in successive calls to this method.
◆ write() [4/4]
static void te::gm::WKTWriter::write |
( |
const Geometry * |
geom, |
|
|
std::ostream & |
o |
|
) |
| |
|
static |
It serializes the geometry to a WKT representation.
- Parameters
-
geom | The geometry to be serialized. |
o | An output stream where we will write the wkt. |
◆ m_ostream
std::ostream& te::gm::WKTWriter::m_ostream |
|
private |
The output stream used to serialize the geometry to WKT.
Definition at line 126 of file WKTWriter.h.
◆ m_tagged
bool te::gm::WKTWriter::m_tagged |
|
private |
This flag controls how geometry are write to the output stream.
Definition at line 127 of file WKTWriter.h.
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_release/src/terralib/geometry/WKTWriter.h