MySQL 8.0.40
Source Code Documentation
gis::Area Class Reference

Area functor that calls boost::geometry::area with the correct parameter types. More...

#include <area_functor.h>

Inheritance diagram for gis::Area:
[legend]

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)
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ Area() [1/2]

gis::Area::Area ( )
default

◆ Area() [2/2]

gis::Area::Area ( double  semi_major,
double  semi_minor 
)

Member Function Documentation

◆ eval() [1/5]

double gis::Area::eval ( const Cartesian_multipolygon g) const

◆ eval() [2/5]

double gis::Area::eval ( const Cartesian_polygon g) const

◆ eval() [3/5]

double gis::Area::eval ( const Geographic_multipolygon g) const

◆ eval() [4/5]

double gis::Area::eval ( const Geographic_polygon g) const

◆ eval() [5/5]

double gis::Area::eval ( const Geometry g) const

◆ operator()()

double gis::Area::operator() ( const Geometry g) const
overridevirtual

Member Data Documentation

◆ m_geographic_strategy

boost::geometry::strategy::area::geographic gis::Area::m_geographic_strategy
private

◆ m_semi_major

double gis::Area::m_semi_major
private

◆ m_semi_minor

double gis::Area::m_semi_minor
private

The documentation for this class was generated from the following files: