1#ifndef SQL_GIS_ST_UNITS_OF_MEASURE_H_INCLUDED
2#define SQL_GIS_ST_UNITS_OF_MEASURE_H_INCLUDED
std::unordered_map, but with my_malloc and collation-aware comparison.
Definition: map_helpers.h:210
collation_unordered_map< std::string, Unit > units()
A function to obtaint the supported units for the gis module.
Definition: st_units_of_measure.cc:29
bool get_conversion_factor(const std::string &unit, double *conversion_factor)
Retrieves the length of the unit in meters.
Definition: st_units_of_measure.cc:118
Unit_Type
Definition: st_units_of_measure.h:32
Definition: st_units_of_measure.h:34
Unit(const Unit_Type unit_type, const double conversion_factor)
Definition: st_units_of_measure.h:41
std::string description
Definition: st_units_of_measure.h:37
Unit_Type unit_type
Definition: st_units_of_measure.h:35
double conversion_factor
Definition: st_units_of_measure.h:36
bool operator==(const gis::Unit &rhs) const
Definition: st_units_of_measure.h:43