MySQL 8.4.2
Source Code Documentation
gis::srs::wkt_parser Namespace Reference

Classes

struct  Authority
 
struct  Axis
 
struct  Datum
 
struct  Geographic_cs
 
struct  Prime_meridian
 
struct  Projected_cs
 
struct  Projection
 
struct  Projection_parameter
 
struct  Spheroid
 
struct  Towgs84
 
struct  Twin_axes
 
struct  Unit
 

Typedefs

typedef std::string String
 String type used in the parse tree. More...
 
typedef std::vector< Projection_parameterProjection_parameters
 
typedef boost::variant< Projected_cs, Geographic_csCoordinate_system
 

Functions

bool parse_wkt (srid_t srid, const char *begin, const char *end, Coordinate_system *cs)
 Parse an SRS definition WKT string. More...
 

Typedef Documentation

◆ Coordinate_system

◆ Projection_parameters

◆ String

typedef std::string gis::srs::wkt_parser::String

String type used in the parse tree.

Function Documentation

◆ parse_wkt()

bool gis::srs::wkt_parser::parse_wkt ( srid_t  srid,
const char *  begin,
const char *  end,
Coordinate_system cs 
)

Parse an SRS definition WKT string.

The parser understands WKT as defined by the <horz cs> specification in OGC 01-009.

Parameters
[in]sridSpatial reference system ID to use when reporting errors
[in]beginStart of WKT string in UTF-8
[in]endEnd of WKT string in UTF-8
[out]csCoordinate system
Return values
trueAn error has occurred
falseSuccess