1#ifndef SQL_GIS_WKB_VISITOR_H_INCLUDED
2#define SQL_GIS_WKB_VISITOR_H_INCLUDED
Definition: spatial_reference_system.h:53
Abstract superclass for all geometric objects.
Definition: geometries.h:100
A collection of geometries.
Definition: geometries.h:410
A string of connected line segments.
Definition: geometries.h:256
A visitor that implements the entire interface and does nothing.
Definition: geometry_visitor.h:122
bool visit_enter(Geometry *) override
Enters a compound geometry.
Definition: geometry_visitor.h:124
bool visit(Geometry *) override
Visits a geometry.
Definition: geometry_visitor.h:159
A 2d point.
Definition: geometries.h:150
A polygon consisting of an outer ring and zero or more interior rings defining holes in the polygon.
Definition: geometries.h:349
A visitor that serializes the geometry to little-endian WKB and appends it to a string.
Definition: wkb_visitor.h:34
const dd::Spatial_reference_system * m_srs
Spatial reference system of the geometry.
Definition: wkb_visitor.h:37
char * m_wkb_current_position
The position of the next character to be added to the string.
Definition: wkb_visitor.h:43
bool visit_enter(Geometry *) override
Enters a compound geometry.
Definition: wkb_visitor.h:59
Wkb_visitor(const dd::Spatial_reference_system *srs, char *wkb, size_t wkb_size)
Construct a new WKB visitor.
Definition: wkb_visitor.h:51
const char * m_wkb
The WKB string.
Definition: wkb_visitor.h:39
bool visit(Point *pt) override
Definition: wkb_visitor.cc:106
const size_t m_wkb_size
Size of the buffer allocated for the WKB string.
Definition: wkb_visitor.h:41
The geometries implement a hierarchical visitor pattern.