MySQL 9.1.0
Source Code Documentation
mbr_utils.h File Reference

This file declares the interface of various utility functions for geometrycollections. More...

#include <boost/geometry.hpp>
#include "sql/gis/box.h"
#include "sql/gis/geometries.h"
#include "sql/gis/geometries_cs.h"

Go to the source code of this file.

Namespaces

namespace  dd
 The version of the current data dictionary table definitions.
 
namespace  gis
 

Functions

bool gis::mbrs_are_equal (Box const &mbr1, Box const &mbr2)
 Checks if two MBRs are equal. More...
 
bool gis::mbr_is_empty (Box const &mbr)
 Checks if an MBR is empty. More...
 
bool gis::mbr_is_point (Box const &mbr)
 Checks if an MBR represents a point. More...
 
bool gis::mbr_is_line (Box const &mbr)
 Checks if an MBR represents a line. More...
 
void gis::box_envelope (const Geometry *g, const dd::Spatial_reference_system *srs, Box *mbr)
 Computes the envelope of a geometry. More...
 
bool gis::knn_query_to_mbr (THD *thd, Item *knn_query_item, double(&coordinates)[5])
 Parse the input geometry, computes and returns the MBR. More...
 

Detailed Description

This file declares the interface of various utility functions for geometrycollections.

The functions may throw exceptions.