MySQL 8.4.2
Source Code Documentation
|
A visitor that serializes the geometry to little-endian WKB and appends it to a string. More...
#include <wkb_visitor.h>
Public Member Functions | |
Wkb_visitor (const dd::Spatial_reference_system *srs, char *wkb, size_t wkb_size) | |
Construct a new WKB visitor. More... | |
bool | visit_enter (Geometry *) override |
Enters a compound geometry. More... | |
bool | visit_enter (Linestring *ls) override |
bool | visit_enter (Polygon *py) override |
bool | visit_enter (Geometrycollection *gc) override |
bool | visit (Point *pt) override |
bool | visit_enter (Geometry *) override |
Enters a compound geometry. More... | |
bool | visit_enter (Curve *c) override |
bool | visit_enter (Linestring *ls) override |
bool | visit_enter (Linearring *lr) override |
bool | visit_enter (Surface *s) override |
bool | visit_enter (Polygon *py) override |
bool | visit_enter (Geometrycollection *gc) override |
bool | visit_enter (Multipoint *mpt) override |
bool | visit_enter (Multicurve *mc) override |
bool | visit_enter (Multilinestring *mls) override |
bool | visit_enter (Multisurface *ms) override |
bool | visit_enter (Multipolygon *mpy) override |
bool | visit (Geometry *) override |
Visits a geometry. More... | |
bool | visit (Point *pt) override |
bool | visit (Curve *c) override |
bool | visit (Linestring *ls) override |
bool | visit (Linearring *lr) override |
bool | visit (Surface *s) override |
bool | visit (Polygon *py) override |
bool | visit (Geometrycollection *gc) override |
bool | visit (Multipoint *mpt) override |
bool | visit (Multicurve *mc) override |
bool | visit (Multilinestring *mls) override |
bool | visit (Multisurface *ms) override |
bool | visit (Multipolygon *mpy) override |
Public Member Functions inherited from gis::Nop_visitor | |
bool | visit_leave (Geometry *) override |
Leaves a compound geometry. More... | |
bool | visit_leave (Curve *c) override |
bool | visit_leave (Linestring *ls) override |
bool | visit_leave (Linearring *lr) override |
bool | visit_leave (Surface *s) override |
bool | visit_leave (Polygon *py) override |
bool | visit_leave (Geometrycollection *gc) override |
bool | visit_leave (Multipoint *mpt) override |
bool | visit_leave (Multicurve *mc) override |
bool | visit_leave (Multilinestring *mls) override |
bool | visit_leave (Multisurface *ms) override |
bool | visit_leave (Multipolygon *mpy) override |
Public Member Functions inherited from gis::Geometry_visitor | |
Geometry_visitor ()=default | |
virtual | ~Geometry_visitor ()=default |
Private Attributes | |
const dd::Spatial_reference_system * | m_srs |
Spatial reference system of the geometry. More... | |
const char * | m_wkb |
The WKB string. More... | |
const size_t | m_wkb_size |
Size of the buffer allocated for the WKB string. More... | |
char * | m_wkb_current_position |
The position of the next character to be added to the string. More... | |
A visitor that serializes the geometry to little-endian WKB and appends it to a string.
|
inline |
Construct a new WKB visitor.
[in] | srs | The spatial reference system of the geometry. |
[in] | wkb | The string to write the WKB to. |
[in] | wkb_size | The length of the WKB string buffer. |
|
inlineoverridevirtual |
Reimplemented from gis::Nop_visitor.
|
inlineoverridevirtual |
Visits a geometry.
This is called on each non-compound geometry and between visiting descendants. E.g., visit(Linestring *) will be called after visiting the first point in the linestring, then after visiting the second, etc., but not after visiting the last point.
g | The geometry to visit. |
true | Abort visitor execution. |
false | Continue visitor execution. |
Reimplemented from gis::Nop_visitor.
|
inlineoverridevirtual |
Reimplemented from gis::Nop_visitor.
|
inlineoverridevirtual |
Reimplemented from gis::Nop_visitor.
|
inlineoverridevirtual |
Reimplemented from gis::Nop_visitor.
|
inlineoverridevirtual |
Reimplemented from gis::Nop_visitor.
|
inlineoverridevirtual |
Reimplemented from gis::Nop_visitor.
|
inlineoverridevirtual |
Reimplemented from gis::Nop_visitor.
|
inlineoverridevirtual |
Reimplemented from gis::Nop_visitor.
|
inlineoverridevirtual |
Reimplemented from gis::Nop_visitor.
|
inlineoverridevirtual |
Reimplemented from gis::Nop_visitor.
|
overridevirtual |
Reimplemented from gis::Nop_visitor.
|
inlineoverridevirtual |
Reimplemented from gis::Nop_visitor.
|
inlineoverridevirtual |
Reimplemented from gis::Nop_visitor.
|
inlineoverridevirtual |
Reimplemented from gis::Nop_visitor.
|
inlineoverridevirtual |
Enters a compound geometry.
This is called on entry to a compound geometry, i.e., all geometries except points.
g | The geometry to visit. |
true | Don't descend into children. |
false | Descend into children. |
Reimplemented from gis::Nop_visitor.
|
inlineoverridevirtual |
Enters a compound geometry.
This is called on entry to a compound geometry, i.e., all geometries except points.
g | The geometry to visit. |
true | Don't descend into children. |
false | Descend into children. |
Reimplemented from gis::Nop_visitor.
|
inlineoverridevirtual |
Reimplemented from gis::Nop_visitor.
|
overridevirtual |
Reimplemented from gis::Nop_visitor.
|
inlineoverridevirtual |
Reimplemented from gis::Nop_visitor.
|
inlineoverridevirtual |
Reimplemented from gis::Nop_visitor.
|
overridevirtual |
Reimplemented from gis::Nop_visitor.
|
inlineoverridevirtual |
Reimplemented from gis::Nop_visitor.
|
inlineoverridevirtual |
Reimplemented from gis::Nop_visitor.
|
inlineoverridevirtual |
Reimplemented from gis::Nop_visitor.
|
inlineoverridevirtual |
Reimplemented from gis::Nop_visitor.
|
inlineoverridevirtual |
Reimplemented from gis::Nop_visitor.
|
inlineoverridevirtual |
Reimplemented from gis::Nop_visitor.
|
overridevirtual |
Reimplemented from gis::Nop_visitor.
|
inlineoverridevirtual |
Reimplemented from gis::Nop_visitor.
|
private |
Spatial reference system of the geometry.
|
private |
The WKB string.
|
private |
The position of the next character to be added to the string.
|
private |
Size of the buffer allocated for the WKB string.