MySQL 8.0.39
Source Code Documentation
wkb.h File Reference

This file declares the interface of the WKB parser for geometries and the parser for the internal geometry representation. More...

#include <memory>
#include "sql/gis/geometries.h"
#include "sql/gis/srid.h"

Go to the source code of this file.

Namespaces

namespace  dd
 The version of the current data dictionary table definitions.
 
namespace  gis
 

Functions

bool gis::parse_srid (const char *str, std::size_t length, srid_t *srid)
 Parses an SRID from a little-endian string. More...
 
std::unique_ptr< Geometrygis::parse_wkb (THD *thd, const dd::Spatial_reference_system *srs, const char *wkb, std::size_t length, bool ignore_axis_order=false)
 Parses a geometry WKB string and constructs a geometry object. More...
 
bool gis::parse_geometry (THD *thd, const char *func_name, const String *str, const dd::Spatial_reference_system **srs, std::unique_ptr< Geometry > *geometry, bool treat_unknown_srid_as_cartesian=false)
 Parses a little-endian geometry string (SRID + WKB). More...
 
bool gis::write_geometry (const dd::Spatial_reference_system *srs, Geometry &geometry, String *str)
 Writes a little-endian geometry string (SRID + WKB). More...
 

Detailed Description

This file declares the interface of the WKB parser for geometries and the parser for the internal geometry representation.