1#ifndef SQL_GIS_BOX_TRAITS_H_INCLUDED
2#define SQL_GIS_BOX_TRAITS_H_INCLUDED
34#include <boost/geometry/geometries/concepts/box_concept.hpp>
50struct tag<
gis::Cartesian_box> {
55struct point_type<
gis::Cartesian_box> {
59template <std::
size_t Dimension>
60struct indexed_access<
gis::Cartesian_box, min_corner, Dimension> {
70template <std::
size_t Dimension>
71struct indexed_access<
gis::Cartesian_box, max_corner, Dimension> {
86struct tag<
gis::Geographic_box> {
91struct point_type<
gis::Geographic_box> {
95template <std::
size_t Dimension>
96struct indexed_access<
gis::Geographic_box, min_corner, Dimension> {
106template <std::
size_t Dimension>
107struct indexed_access<
gis::Geographic_box, max_corner, Dimension> {
This file declares the Box class.
A Cartesian 2d box.
Definition: box.h:70
Cartesian_point const & min_corner() const override
Returns the minimum corner.
Definition: box.h:88
Cartesian_point const & max_corner() const override
Returns the maximum corner.
Definition: box.h:94
A Cartesian 2d point.
Definition: geometries_cs.h:47
A Geographic 2d box.
Definition: box.h:103
Geographic_point const & max_corner() const override
Returns the maximum corner.
Definition: box.h:127
Geographic_point const & min_corner() const override
Returns the minimum corner.
Definition: box.h:121
A geographic (ellipsoidal) 2d point.
Definition: geometries_cs.h:58
void set(double d)
Sets a coordinate.
double get() const
Gets a coordinate value.
This file declares the geometry class hierarchy used by the server as the internal representation of ...
This file declares the coordinate system specific subclasses of the geometry class hierarchy.
This file contains Boost.Geometry type traits declarations for Cartesian and geographic geometries.
Tag dispatch for custom Role_properties.
Definition: sql_auth_cache.h:591
static double get(gis::Cartesian_box const &b)
Definition: box_traits.h:72
static void set(gis::Cartesian_box &b, double const &value)
Definition: box_traits.h:76
static double get(gis::Cartesian_box const &b)
Definition: box_traits.h:61
static void set(gis::Cartesian_box &b, double const &value)
Definition: box_traits.h:65
static double get(gis::Geographic_box const &b)
Definition: box_traits.h:108
static void set(gis::Geographic_box &b, double const &value)
Definition: box_traits.h:112
static void set(gis::Geographic_box &b, double const &value)
Definition: box_traits.h:101
static double get(gis::Geographic_box const &b)
Definition: box_traits.h:97
gis::Cartesian_point type
Definition: box_traits.h:56
gis::Geographic_point type
Definition: box_traits.h:92
box_tag type
Definition: box_traits.h:51
box_tag type
Definition: box_traits.h:87