MySQL 8.0.40
Source Code Documentation
|
A ring-shaped linestring. More...
#include <geometries.h>
Public Member Functions | |
bool | accept (Geometry_visitor *v) override=0 |
Applies a hierarchical visitor to this geometry. More... | |
Public Member Functions inherited from gis::Linestring | |
Geometry_type | type () const override |
Gets the geometry type of the object. More... | |
bool | is_empty () const override |
Check if this is an empty geometry. More... | |
Linestring * | clone () const override=0 |
virtual void | push_back (const Point &pt)=0 |
Adds a point to the end of the linestring. More... | |
virtual void | push_back (Point &&pt)=0 |
virtual void | pop_front ()=0 |
Removes a point from the front of the linestring. More... | |
virtual bool | empty () const =0 |
Checks if the linestring is empty. More... | |
virtual std::size_t | size () const =0 |
Returns the size of (number of points in) the linestring. More... | |
virtual void | clear () noexcept=0 |
Removes all points from the linestring. More... | |
virtual Point & | back ()=0 |
Returns the last point of the linestring. More... | |
virtual const Point & | back () const =0 |
virtual Point & | front ()=0 |
Returns the first point of the linestring. More... | |
virtual const Point & | front () const =0 |
virtual Point & | operator[] (std::size_t i)=0 |
virtual const Point & | operator[] (std::size_t i) const =0 |
Public Member Functions inherited from gis::Geometry | |
Geometry ()=default | |
virtual | ~Geometry ()=default |
Geometry (const Geometry &)=default | |
Geometry & | operator= (const Geometry &)=default |
virtual Coordinate_system | coordinate_system () const =0 |
Gets the coordinate system. More... | |
Static Public Member Functions | |
static Linearring * | create_linearring (Coordinate_system coordinate_system) |
Creates a subclass of Linearring from a Coordinate_system. More... | |
Static Public Member Functions inherited from gis::Linestring | |
static Linestring * | create_linestring (Coordinate_system coordinate_system) |
Creates a subclass of Linestring from a Coordinate_system. More... | |
A ring-shaped linestring.
Linearring is a non-instantiable type in SQL. It is used to represent polygon rings.
The start and end point of the linestring must be the same (assumed, but not enforced, by the implementation).
|
overridepure virtual |
Applies a hierarchical visitor to this geometry.
v | A hierarchical visitor. |
true | The execution was aborted by the visitor. |
false | The execution completed. |
Implements gis::Linestring.
Implemented in gis::Cartesian_linearring, and gis::Geographic_linearring.
|
static |
Creates a subclass of Linearring from a Coordinate_system.
[in] | coordinate_system | Coordinate system to create a Linearring for. |