A class that serializes a geometry to the WKB format.
More...
#include <WKBWriter.h>
A class that serializes a geometry to the WKB format.
- See also
- WKBReader
Definition at line 46 of file WKBWriter.h.
It constructs a new WKB writer.
- Parameters
-
wkb | A pointer to a buffer to output the wkb. It must have at least the size in bytes necessary to write the WKB. |
byteOrder | The byte order to be used to encode the WKB. |
te::gm::WKBWriter::~WKBWriter |
( |
| ) |
|
It resets the WKB writer an allows a new geometry to be seriealized to a new buffer.
- Parameters
-
wkb | A pointer to a buffer to output the wkb. It must have at least the size in bytes necessary to write the WKB. |
byteOrder | The byte order to be used to encode the WKB. |
void te::gm::WKBWriter::visit |
( |
const Curve & |
| ) |
|
|
inlineprotectedvirtual |
void te::gm::WKBWriter::visit |
( |
const Geometry & |
| ) |
|
|
inlineprotectedvirtual |
void te::gm::WKBWriter::visit |
( |
const LinearRing & |
visited | ) |
|
|
protectedvirtual |
void te::gm::WKBWriter::visit |
( |
const LineString & |
visited | ) |
|
|
protectedvirtual |
void te::gm::WKBWriter::visit |
( |
const MultiCurve & |
| ) |
|
|
inlineprotectedvirtual |
void te::gm::WKBWriter::visit |
( |
const MultiPoint & |
visited | ) |
|
|
protectedvirtual |
void te::gm::WKBWriter::visit |
( |
const MultiPolygon & |
visited | ) |
|
|
protectedvirtual |
void te::gm::WKBWriter::visit |
( |
const Point & |
visited | ) |
|
|
protectedvirtual |
void te::gm::WKBWriter::visit |
( |
const PointM & |
visited | ) |
|
|
protectedvirtual |
void te::gm::WKBWriter::visit |
( |
const PointZ & |
visited | ) |
|
|
protectedvirtual |
void te::gm::WKBWriter::visit |
( |
const PointZM & |
visited | ) |
|
|
protectedvirtual |
void te::gm::WKBWriter::visit |
( |
const PointKd & |
| ) |
|
|
inlineprotectedvirtual |
void te::gm::WKBWriter::visit |
( |
const Polygon & |
visited | ) |
|
|
protectedvirtual |
void te::gm::WKBWriter::visit |
( |
const Surface & |
| ) |
|
|
inlineprotectedvirtual |
void te::gm::WKBWriter::visit |
( |
const TIN & |
visited | ) |
|
|
protectedvirtual |
void te::gm::WKBWriter::visit |
( |
const Triangle & |
visited | ) |
|
|
protectedvirtual |
void te::gm::WKBWriter::write |
( |
const Geometry * |
geom | ) |
|
It serializes the geometry to a WKB representation into the specified buffer.
- Parameters
-
geom | The geometry to be serialized. |
- Note
- You must call reset in successive calls to this method.
It serializes the geometry to a WKB representation into the specified buffer.
The wkb parameter must have at least geom.getWkbSize() in order to be used. Don't pass a NULL pointer or a buffer smaller than the size needed. Note that the WKB will be on the specified byte order.
- Parameters
-
geom | The geometry to be serialized. |
wkb | The buffer where the geometry will be serialized. |
byteOrder | The byte order used to store/serialize the geometry. |
The byte order used to encode the WKB.
Definition at line 121 of file WKBWriter.h.
char* te::gm::WKBWriter::m_wkb |
|
private |
A pointer that marks the current position in a buffer to be write when parsing the geometry.
Definition at line 120 of file WKBWriter.h.
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_master/terralib5/src/terralib/geometry/WKBWriter.h