MySQL 8.0.39
Source Code Documentation
Linestring_stepper Class Reference

For iterating linestrings inside multilinestring and polygon. More...

Inheritance diagram for Linestring_stepper:
[legend]

Public Member Functions

 Linestring_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 linestrings inside multilinestring and polygon.

Expected multilinestring format: NUM-ls|WKB-HDR1 ls1|WKB-HDR2 ls2|.... Expected polygon format doesn't have the WKB headers, and the 1st one is exterior ring, following if any are interior rings.

In both cases, the linestrX is of linestring format, with no WKB header in its each point.

Constructor & Destructor Documentation

◆ Linestring_stepper()

Linestring_stepper::Linestring_stepper ( char  dim,
Geometry::wkbByteOrder  bo,
bool  has_wkb_hdr 
)
inline

Member Function Documentation

◆ operator()()

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

Parsing operator.

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

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