MySQL  8.0.28
Source Code Documentation
wkb.cc File Reference
#include "sql/gis/wkb.h"
#include <cmath>
#include <exception>
#include "my_byteorder.h"
#include "my_sys.h"
#include "myisampack.h"
#include "mysqld_error.h"
#include "sql/check_stack.h"
#include "sql/gis/coordinate_range_visitor.h"
#include "sql/gis/geometries.h"
#include "sql/gis/geometries_cs.h"
#include "sql/gis/ring_flip_visitor.h"
#include "sql/gis/wkb_size_visitor.h"
#include "sql/gis/wkb_visitor.h"
#include "sql/sql_const.h"
#include "sql/sql_error.h"
#include "sql/srs_fetcher.h"
#include "sql_string.h"
#include "template_utils.h"

Classes

class  gis::Wkb_parser< Point_t, Linestring_t, Linearring_t, Polygon_t, Geometrycollection_t, Multipoint_t, Multilinestring_t, Multipolygon_t >
 

Namespaces

 gis
 

Enumerations

enum class  gis::Byte_order : std::uint8_t { gis::XDR = 0 , gis::NDR = 1 }
 WKB endianness. More...
 

Functions

static bool gis::is_valid_type (Geometry_type type)
 Checks if a given type is a valid (and supported) WKB type. More...
 
static bool gis::is_subtype_of (Geometry_type sub, Geometry_type super)
 Checks if a given type is a subtype of a given supertype. More...
 
static bool gis::is_valid_type_or_subtype (Geometry_type sub, Geometry_type super)
 Checks if a given type is a valid type and that it is a subtype of a given supertype. 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_srid (const char *str, std::size_t length, srid_t *srid)
 Parses an SRID from a little-endian string. 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...