MySQL 8.0.40
Source Code Documentation
gis::Hausdorff_distance Class Reference

HausdorffDistance functor that calls Boost.Geometry with the correct parameter types. More...

#include <hausdorff_distance_functor.h>

Inheritance diagram for gis::Hausdorff_distance:
[legend]

Public Member Functions

 Hausdorff_distance (double major, double minor)
 
double operator() (const Geometry *g1, const Geometry *g2) const override
 
double eval (const Geometry *g1, const Geometry *g2) const
 
double eval (const Cartesian_point *g1, const Cartesian_multipoint *g2) const
 
double eval (const Cartesian_multipoint *g1, const Cartesian_point *g2) const
 
double eval (const Cartesian_linestring *g1, const Cartesian_linestring *g2) const
 
double eval (const Cartesian_multipoint *g1, const Cartesian_multipoint *g2) const
 
double eval (const Cartesian_linestring *g1, const Cartesian_multilinestring *g2) const
 
double eval (const Cartesian_multilinestring *g1, const Cartesian_linestring *g2) const
 
double eval (const Cartesian_multilinestring *g1, const Cartesian_multilinestring *g2) const
 
double eval (const Geographic_point *g1, const Geographic_multipoint *g2) const
 
double eval (const Geographic_multipoint *g1, const Geographic_point *g2) const
 
double eval (const Geographic_linestring *g1, const Geographic_linestring *g2) const
 
double eval (const Geographic_multipoint *g1, const Geographic_multipoint *g2) const
 
double eval (const Geographic_linestring *g1, const Geographic_multilinestring *g2) const
 
double eval (const Geographic_multilinestring *g1, const Geographic_linestring *g2) const
 
double eval (const Geographic_multilinestring *g1, const Geographic_multilinestring *g2) const
 
- Public Member Functions inherited from gis::Functor< double >
virtual ~Functor ()=default
 

Private Attributes

std::unique_ptr< boost::geometry::strategy::distance::geographic< boost::geometry::strategy::andoyer, boost::geometry::srs::spheroid< double > > > m_geographic_strategy
 

Additional Inherited Members

- Static Protected Member Functions inherited from gis::Functor< double >
static double apply (F &f, const Geometry *g1, const Geometry *g2)
 

Detailed Description

HausdorffDistance functor that calls Boost.Geometry with the correct parameter types.

The functor throws exceptions and is therefore only intended used to implement hausdorff_distance or other geographic functions. It should not be used directly by other MySQL code.

Constructor & Destructor Documentation

◆ Hausdorff_distance()

gis::Hausdorff_distance::Hausdorff_distance ( double  major,
double  minor 
)

Member Function Documentation

◆ eval() [1/15]

double gis::Hausdorff_distance::eval ( const Cartesian_linestring g1,
const Cartesian_linestring g2 
) const

◆ eval() [2/15]

double gis::Hausdorff_distance::eval ( const Cartesian_linestring g1,
const Cartesian_multilinestring g2 
) const

◆ eval() [3/15]

double gis::Hausdorff_distance::eval ( const Cartesian_multilinestring g1,
const Cartesian_linestring g2 
) const

◆ eval() [4/15]

double gis::Hausdorff_distance::eval ( const Cartesian_multilinestring g1,
const Cartesian_multilinestring g2 
) const

◆ eval() [5/15]

double gis::Hausdorff_distance::eval ( const Cartesian_multipoint g1,
const Cartesian_multipoint g2 
) const

◆ eval() [6/15]

double gis::Hausdorff_distance::eval ( const Cartesian_multipoint g1,
const Cartesian_point g2 
) const

◆ eval() [7/15]

double gis::Hausdorff_distance::eval ( const Cartesian_point g1,
const Cartesian_multipoint g2 
) const

◆ eval() [8/15]

double gis::Hausdorff_distance::eval ( const Geographic_linestring g1,
const Geographic_linestring g2 
) const

◆ eval() [9/15]

double gis::Hausdorff_distance::eval ( const Geographic_linestring g1,
const Geographic_multilinestring g2 
) const

◆ eval() [10/15]

double gis::Hausdorff_distance::eval ( const Geographic_multilinestring g1,
const Geographic_linestring g2 
) const

◆ eval() [11/15]

double gis::Hausdorff_distance::eval ( const Geographic_multilinestring g1,
const Geographic_multilinestring g2 
) const

◆ eval() [12/15]

double gis::Hausdorff_distance::eval ( const Geographic_multipoint g1,
const Geographic_multipoint g2 
) const

◆ eval() [13/15]

double gis::Hausdorff_distance::eval ( const Geographic_multipoint g1,
const Geographic_point g2 
) const

◆ eval() [14/15]

double gis::Hausdorff_distance::eval ( const Geographic_point g1,
const Geographic_multipoint g2 
) const

◆ eval() [15/15]

double gis::Hausdorff_distance::eval ( const Geometry g1,
const Geometry g2 
) const

◆ operator()()

double gis::Hausdorff_distance::operator() ( const Geometry g1,
const Geometry g2 
) const
overridevirtual

Member Data Documentation

◆ m_geographic_strategy

std::unique_ptr<boost::geometry::strategy::distance::geographic< boost::geometry::strategy::andoyer, boost::geometry::srs::spheroid<double> > > gis::Hausdorff_distance::m_geographic_strategy
private

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