MySQL 8.0.39
Source Code Documentation
|
Area functor that calls boost::geometry::area with the correct parameter types. More...
#include <area_functor.h>
Public Member Functions | |
Area () | |
Area (double semi_major, double semi_minor) | |
double | operator() (const Geometry &g) const override |
double | eval (const Cartesian_polygon &g) const |
double | eval (const Cartesian_multipolygon &g) const |
double | eval (const Geographic_polygon &g) const |
double | eval (const Geographic_multipolygon &g) const |
double | eval (const Geometry &g) const |
Public Member Functions inherited from gis::Unary_functor< double > | |
virtual | ~Unary_functor ()=default |
Private Attributes | |
double | m_semi_major |
double | m_semi_minor |
boost::geometry::strategy::area::geographic | m_geographic_strategy |
Additional Inherited Members | |
Static Protected Member Functions inherited from gis::Unary_functor< double > | |
static double | apply (F &f, const Geometry &g) |
Area functor that calls boost::geometry::area with the correct parameter types.
The functor may throw exceptions. It is intended for implementing geographic functions. It should not be used directly by other MySQL code.
|
default |
gis::Area::Area | ( | double | semi_major, |
double | semi_minor | ||
) |
double gis::Area::eval | ( | const Cartesian_multipolygon & | g | ) | const |
double gis::Area::eval | ( | const Cartesian_polygon & | g | ) | const |
double gis::Area::eval | ( | const Geographic_multipolygon & | g | ) | const |
double gis::Area::eval | ( | const Geographic_polygon & | g | ) | const |
double gis::Area::eval | ( | const Geometry & | g | ) | const |
|
overridevirtual |
Implements gis::Unary_functor< double >.
|
private |
|
private |
|
private |