MySQL 8.1.0
Source Code Documentation
Polygon_stepper Class Reference

For iterating polygons inside multipolygon or geometry collection. More...

Inheritance diagram for Polygon_stepper:

Public Member Functions

 Polygon_stepper (char dim, Geometry::wkbByteOrder bo, bool has_wkb_hdr)
const char * operator() (const char *p)
 Parsing operator. More...
- Public Member Functions inherited from Stepper_base
 Stepper_base (char dim, Geometry::wkbByteOrder bo, bool has_wkb_hdr, Geometry::wkbType geotype)
 Constructor. More...
Geometry::wkbByteOrder get_current_byte_order () const
Geometry::wkbType get_current_geotype () const

Additional Inherited Members

- Protected Attributes inherited from Stepper_base
char m_dim
 Current geometry dimension. More...
bool m_has_wkb_hdr
 Current geometry has a WKB header or not. More...
Geometry::wkbByteOrder m_bo
 Current geometry's byte order. More...
Geometry::wkbType m_geotype
 Current geometry's type, e.g. polygon, linestring, etc. More...

Detailed Description

For iterating polygons inside multipolygon or geometry collection.

Expected multipolygon format: NUM-plgns|WKB-HDR1 plgn1|WKB-HDR2 plgn2|... This is also expected format for geometry collection. In both cases inside polygonX there is no more WKB headers.

Constructor & Destructor Documentation

◆ Polygon_stepper()

Polygon_stepper::Polygon_stepper ( char  dim,
Geometry::wkbByteOrder  bo,
bool  has_wkb_hdr 

Member Function Documentation

◆ operator()()

const char * Polygon_stepper::operator() ( const char *  p)

Parsing operator.

ppoints to the 1st byte of a polygon's wkb data, right after its wkb header if any;
the next polygon's wkb data's 1st byte pointer, skipping its wkb header if any.

The documentation for this class was generated from the following file: