MySQL  8.0.25
Source Code Documentation
gis::Geometry Class Referenceabstract

Abstract superclass for all geometric objects. More...

#include <geometries.h>

Inheritance diagram for gis::Geometry:
gis::Curve gis::Geometrycollection gis::Point gis::Surface gis::Linestring gis::Cartesian_geometrycollection gis::Geographic_geometrycollection gis::Multicurve gis::Multipoint gis::Multisurface gis::Cartesian_point gis::Geographic_point gis::Polygon

Public Member Functions

 Geometry ()=default
virtual ~Geometry ()=default
 Geometry (const Geometry &)=default
Geometryoperator= (const Geometry &)=default
virtual Geometryclone () const =0
virtual Geometry_type type () const =0
 Gets the geometry type of the object. More...
virtual Coordinate_system coordinate_system () const =0
 Gets the coordinate system. More...
virtual bool accept (Geometry_visitor *v)=0
 Applies a hierarchical visitor to this geometry. More...
virtual bool is_empty () const =0
 Check if this is an empty geometry. More...

Detailed Description

Abstract superclass for all geometric objects.

Geometry is a non-instantiable type in SQL.

The hierarchy is first divided into abstract classes according to the SFA-CA geometry type hierarchy, and then divided into concrete subclasses for each coordinate system.

Constructor & Destructor Documentation

◆ Geometry() [1/2]

gis::Geometry::Geometry ( )

◆ ~Geometry()

virtual gis::Geometry::~Geometry ( )

◆ Geometry() [2/2]

gis::Geometry::Geometry ( const Geometry )

Member Function Documentation

◆ accept()

◆ clone()

◆ coordinate_system()

◆ is_empty()

virtual bool gis::Geometry::is_empty ( ) const
pure virtual

Check if this is an empty geometry.

The definition of empty geometries is the one in SFA-CA (OGC 06-103r4, Sect., i.e., an empty point set.

This is different from the function "empty", which returns true if a geometry contains no subgeometries. E.g., a geometry collection may contain another geometry collection which is empty. In this case, the "empty" function would return false on the outermost geometry collection, while "is_empty" would return true.
Return values
trueThe geometry represents the empty point set.
falseThe geometry represent a non-empty point set.

Implemented in gis::Geographic_multipolygon, gis::Cartesian_multipolygon, gis::Geographic_multilinestring, gis::Cartesian_multilinestring, gis::Geographic_multipoint, gis::Cartesian_multipoint, gis::Geographic_geometrycollection, gis::Cartesian_geometrycollection, gis::Geographic_linearring, gis::Cartesian_linearring, gis::Polygon, gis::Linestring, and gis::Point.

◆ operator=()

Geometry& gis::Geometry::operator= ( const Geometry )

◆ type()

virtual Geometry_type gis::Geometry::type ( ) const
pure virtual

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