1#ifndef SQL_GIS_WKB_H_INCLUDED
2#define SQL_GIS_WKB_H_INCLUDED
40class Spatial_reference_system;
82 const char *wkb, std::size_t
length,
83 bool ignore_axis_order =
false);
102 std::unique_ptr<Geometry> *geometry,
103 bool treat_unknown_srid_as_cartesian =
false);
Definition: spatial.h:213
Using this class is fraught with peril, and you need to be very careful when doing so.
Definition: sql_string.h:168
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:34
Definition: spatial_reference_system.h:53
This file declares the geometry class hierarchy used by the server as the internal representation of ...
std::string str(const mysqlrouter::ConfigGenerator::Options::Endpoint &ep)
Definition: config_generator.cc:1052
The version of the current data dictionary table definitions.
Definition: dictionary_client.h:43
bool length(const dd::Spatial_reference_system *srs, const Geometry *g1, double *length, bool *null) noexcept
Computes the length of linestrings and multilinestrings.
Definition: length.cc:76
bool 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)
Parses a little-endian geometry string (SRID + WKB).
Definition: wkb.cc:437
bool parse_srid(const char *str, std::size_t length, srid_t *srid)
Parses an SRID from a little-endian string.
Definition: wkb.cc:429
bool write_geometry(const dd::Spatial_reference_system *srs, Geometry &geometry, String *str)
Writes a little-endian geometry string (SRID + WKB).
Definition: wkb.cc:499
std::unique_ptr< Geometry > parse_wkb(THD *thd, const dd::Spatial_reference_system *srs, const char *wkb, std::size_t length, bool ignore_axis_order)
Parses a geometry WKB string and constructs a geometry object.
Definition: wkb.cc:384
std::uint32_t srid_t
A spatial reference system ID (SRID).
Definition: srid.h:33