MySQL 8.4.2
Source Code Documentation
|
Length functor that calls Boost.Geometry with the correct parameter types. More...
#include <length_functor.h>
Public Member Functions | |
Length (double major, double minor) | |
double | operator() (const Geometry &g1) const override |
double | eval (const Geometry &g1) const |
double | eval (const Geographic_linestring &g1) const |
double | eval (const Cartesian_linestring &g1) const |
double | eval (const Geographic_multilinestring &g1) const |
double | eval (const Cartesian_multilinestring &g1) const |
Public Member Functions inherited from gis::Unary_functor< double > | |
virtual | ~Unary_functor ()=default |
Private Attributes | |
std::unique_ptr< boost::geometry::strategy::distance::andoyer< boost::geometry::srs::spheroid< double > > > | m_geographic_strategy |
Additional Inherited Members | |
Static Protected Member Functions inherited from gis::Unary_functor< double > | |
static double | apply (F &f, const Geometry &g) |
Length functor that calls Boost.Geometry with the correct parameter types.
The functor throws exceptions and is therefore only intended used to implement length or other geographic functions. It should not be used directly by other MySQL code.
gis::Length::Length | ( | double | major, |
double | minor | ||
) |
double gis::Length::eval | ( | const Cartesian_linestring & | g1 | ) | const |
double gis::Length::eval | ( | const Cartesian_multilinestring & | g1 | ) | const |
double gis::Length::eval | ( | const Geographic_linestring & | g1 | ) | const |
double gis::Length::eval | ( | const Geographic_multilinestring & | g1 | ) | const |
double gis::Length::eval | ( | const Geometry & | g1 | ) | const |
|
overridevirtual |
Implements gis::Unary_functor< double >.
|
private |