MySQL 9.1.0
Source Code Documentation
|
A geographic (ellipsoidal) 2d multipolygon. More...
#include <geometries_cs.h>
Public Types | |
typedef decltype(m_polygons) ::value_type | value_type |
typedef decltype(m_polygons) ::iterator | iterator |
typedef decltype(m_polygons) ::const_iterator | const_iterator |
Public Member Functions | |
Geographic_multipolygon () | |
Coordinate_system | coordinate_system () const override |
Gets the coordinate system. More... | |
bool | accept (Geometry_visitor *v) override |
Applies a hierarchical visitor to this geometry. More... | |
bool | is_empty () const override |
Check if this is an empty geometry. More... | |
void | pop_front () override |
Removes a geometry from the front of the collection. More... | |
void | push_back (const Geometry &g) override |
Adds a geometry to the collection. More... | |
void | push_back (Geometry &&g) override |
bool | empty () const override |
Checks if the collection is empty. More... | |
std::size_t | size () const override |
Returns the size of the geometrycollection. More... | |
void | resize (std::size_t count) override |
Resizes the geometrycollection to contain a given number of elements. More... | |
void | clear () noexcept override |
Removes all geometries from the geometrycollection. More... | |
iterator | begin () noexcept |
const_iterator | begin () const noexcept |
iterator | end () noexcept |
const_iterator | end () const noexcept |
Geographic_polygon & | front () override |
Returns the first polygon of the Multipolygon. More... | |
const Geographic_polygon & | front () const override |
Geographic_polygon & | operator[] (std::size_t i) override |
const Geometry & | operator[] (std::size_t i) const override |
Geographic_multipolygon * | clone () const override |
Clone pattern to easily duplicate a Multipolygon. More... | |
Public Member Functions inherited from gis::Multipolygon | |
Geometry_type | type () const override |
Gets the geometry type of the object. More... | |
Public Member Functions inherited from gis::Geometry | |
Geometry ()=default | |
virtual | ~Geometry ()=default |
Geometry (const Geometry &)=default | |
Geometry & | operator= (const Geometry &)=default |
Private Attributes | |
std::vector< Geographic_polygon, Malloc_allocator< Geographic_polygon > > | m_polygons |
List of polygons in the collection. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from gis::Multipolygon | |
static Multipolygon * | create_multipolygon (Coordinate_system coordinate_system) |
Creates a subclass of Multipolygon from a Coordinate_system. More... | |
Static Public Member Functions inherited from gis::Geometrycollection | |
static Geometrycollection * | CreateGeometrycollection (Coordinate_system coordinate_system) |
Creates a subclass of Geometrycollection from a Coordinate_system. More... | |
static Geometrycollection * | create_geometrycollection (Coordinate_system coordinate_system) |
Creates a subclass from a Coordinate_system. More... | |
A geographic (ellipsoidal) 2d multipolygon.
typedef decltype(m_polygons) ::const_iterator gis::Geographic_multipolygon::const_iterator |
typedef decltype(m_polygons) ::iterator gis::Geographic_multipolygon::iterator |
typedef decltype(m_polygons) ::value_type gis::Geographic_multipolygon::value_type |
|
inline |
|
overridevirtual |
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::Multipolygon.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlineoverridevirtualnoexcept |
Removes all geometries from the geometrycollection.
Implements gis::Geometrycollection.
|
inlineoverridevirtual |
Clone pattern to easily duplicate a Multipolygon.
Implements gis::Multipolygon.
|
inlineoverridevirtual |
|
overridevirtual |
Checks if the collection is empty.
true | The polygon is empty. |
false | The polygon is not empty. |
Implements gis::Geometrycollection.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlineoverridevirtual |
Implements gis::Multipolygon.
|
inlineoverridevirtual |
Returns the first polygon of the Multipolygon.
Implements gis::Multipolygon.
|
inlineoverridevirtual |
Check if this is an empty geometry.
The definition of empty geometries is the one in SFA-CA (OGC 06-103r4, Sect. 6.1.2.2), i.e., an empty point set.
true | The geometry represents the empty point set. |
false | The geometry represent a non-empty point set. |
Implements gis::Geometry.
|
inlineoverridevirtual |
Implements gis::Geometrycollection.
|
inlineoverridevirtual |
Implements gis::Geometrycollection.
|
inlineoverridevirtual |
Removes a geometry from the front of the collection.
Implements gis::Geometrycollection.
|
overridevirtual |
Adds a geometry to the collection.
g | The geometry to add. |
Implements gis::Geometrycollection.
|
overridevirtual |
Implements gis::Geometrycollection.
|
inlineoverridevirtual |
Resizes the geometrycollection to contain a given number of elements.
If the new size is smaller than the current size, the remaining geometries are discarded.
[in] | count | The new number of geometries. |
Implements gis::Geometrycollection.
|
inlineoverridevirtual |
Returns the size of the geometrycollection.
Implements gis::Geometrycollection.
|
private |
List of polygons in the collection.