MySQL 8.4.2
Source Code Documentation
|
#include <spatial_reference_system.h>
Public Types | |
typedef Spatial_reference_system_impl | Impl |
typedef Spatial_reference_system | Cache_partition |
typedef tables::Spatial_reference_systems | DD_table |
typedef Primary_id_key | Id_key |
typedef Item_name_key | Name_key |
typedef Void_key | Aux_key |
Public Member Functions | |
virtual bool | update_id_key (Id_key *key) const |
virtual bool | update_name_key (Name_key *key) const |
virtual bool | update_aux_key (Aux_key *) const |
~Spatial_reference_system () override=default | |
virtual ulonglong | created (bool convert_time) const =0 |
virtual void | set_created (ulonglong created)=0 |
virtual ulonglong | last_altered (bool convert_time) const =0 |
virtual void | set_last_altered (ulonglong last_altered)=0 |
virtual const std::optional< String_type > & | organization () const =0 |
virtual void | set_organization (const String_type &organization)=0 |
virtual void | set_organization (std::nullptr_t)=0 |
virtual const std::optional< gis::srid_t > & | organization_coordsys_id () const =0 |
virtual void | set_organization_coordsys_id (gis::srid_t organization_coordsys_id)=0 |
virtual void | set_organization_coordsys_id (std::nullptr_t)=0 |
virtual const String_type & | definition () const =0 |
virtual void | set_definition (const String_type &definition)=0 |
virtual gis::Coordinate_system | cs_type () const =0 |
virtual bool | is_projected () const =0 |
virtual bool | is_cartesian () const =0 |
virtual bool | is_geographic () const =0 |
virtual bool | is_lat_long () const =0 |
Check whether an SRS has latitude-longitude axis ordering. More... | |
virtual double | semi_major_axis () const =0 |
virtual double | semi_minor_axis () const =0 |
virtual double | linear_unit () const =0 |
virtual double | angular_unit () const =0 |
virtual double | prime_meridian () const =0 |
virtual bool | positive_east () const =0 |
virtual bool | positive_north () const =0 |
virtual bool | missing_towgs84 () const =0 |
Checks whether the SRS definition is missing a TOWGS84 clause. More... | |
virtual double | to_radians (double d) const =0 |
Converts a coordinate value from the SRS unit to radians. More... | |
virtual double | from_radians (double d) const =0 |
Converts a coordinate value from radians to the SRS unit. More... | |
virtual double | to_normalized_latitude (double d) const =0 |
Converts a latitude value from the SRS unit and direction to the in-memory representation of latitude (radians, positive North). More... | |
virtual double | from_normalized_latitude (double d) const =0 |
Converts a latitude value from the in-memory representation of latitude (radians, positive North) to the SRS unit and direction. More... | |
virtual double | to_normalized_longitude (double d) const =0 |
Converts a longitude value from the SRS unit, direction and meridian to the in-memory representation of longitude (radians, positive East, Greenwich meridian). More... | |
virtual double | from_normalized_longitude (double d) const =0 |
Converts a longitude value from the in-memory representation of longitude (radians, positive East, Greenwich meridian) to the SRS unit, direction and meridian. More... | |
virtual bool | can_be_modified_to (const Spatial_reference_system &srs) const =0 |
Checks if this SRS can be changed to another SRS definition without changing any computations. More... | |
virtual String_type | proj4_parameters () const =0 |
Gets the proj4 parameters for this SRS. More... | |
virtual const std::optional< String_type > & | description () const =0 |
virtual void | set_description (const String_type &description)=0 |
virtual void | set_description (std::nullptr_t)=0 |
virtual Spatial_reference_system * | clone () const =0 |
Allocate a new object and invoke the copy constructor. More... | |
virtual Spatial_reference_system * | clone_dropped_object_placeholder () const =0 |
Allocate a new object which can serve as a placeholder for the original object in the Dictionary_client's dropped registry. More... | |
Public Member Functions inherited from dd::Entity_object | |
virtual Object_id | id () const =0 |
The unique dictionary object id. More... | |
virtual bool | is_persistent () const =0 |
Is dictionary object persistent in dictionary tables ? More... | |
virtual const String_type & | name () const =0 |
virtual void | set_name (const String_type &name)=0 |
Public Member Functions inherited from dd::Weak_object | |
virtual void | debug_print (String_type &outb) const =0 |
Weak_object ()=default | |
Weak_object (const Weak_object &)=default | |
virtual | ~Weak_object ()=default |
Static Public Member Functions | |
static bool | update_id_key (Id_key *key, Object_id id) |
static bool | update_name_key (Name_key *key, const String_type &name) |
|
overridedefault |
|
pure virtual |
Implemented in dd::Spatial_reference_system_impl.
|
pure virtual |
Checks if this SRS can be changed to another SRS definition without changing any computations.
It's not allowed to change any numbers that affect computations, but it is allowed to add TOWGS84 parameters if the SRS doesn't already have any.
[in] | srs | The SRS to compare with. |
true | The two SRSs are semantically the same. |
false | The two SRss are not semantically the same, or of types which comparison rules are unknown (e.g., unknown projection). |
Implemented in dd::Spatial_reference_system_impl.
|
pure virtual |
Allocate a new object and invoke the copy constructor.
Implemented in dd::Spatial_reference_system_impl.
|
pure virtual |
Allocate a new object which can serve as a placeholder for the original object in the Dictionary_client's dropped registry.
Such object has the same keys as the original but has no other info and as result occupies less memory.
Implemented in dd::Spatial_reference_system_impl.
|
pure virtual |
Implemented in dd::Spatial_reference_system_impl.
|
pure virtual |
Implemented in dd::Spatial_reference_system_impl.
|
pure virtual |
Implemented in dd::Spatial_reference_system_impl.
|
pure virtual |
Implemented in dd::Spatial_reference_system_impl.
|
pure virtual |
Converts a latitude value from the in-memory representation of latitude (radians, positive North) to the SRS unit and direction.
[in] | d | Latitude in radians, positive North. |
Implemented in dd::Spatial_reference_system_impl.
|
pure virtual |
Converts a longitude value from the in-memory representation of longitude (radians, positive East, Greenwich meridian) to the SRS unit, direction and meridian.
[in] | d | Longitude in radians, positive East, Greenwich meridian. |
Implemented in dd::Spatial_reference_system_impl.
|
pure virtual |
Converts a coordinate value from radians to the SRS unit.
The conversion does not take axis direction or meridian shifting into account.
[in] | d | Value in radians. |
Implemented in dd::Spatial_reference_system_impl.
|
pure virtual |
Implemented in dd::Spatial_reference_system_impl.
|
pure virtual |
Implemented in dd::Spatial_reference_system_impl.
|
pure virtual |
Check whether an SRS has latitude-longitude axis ordering.
true | the axis order is latitude-longitude |
false | the SRS is not geographic, or is geographic longitude-latitude |
Implemented in dd::Spatial_reference_system_impl.
|
pure virtual |
Implemented in dd::Spatial_reference_system_impl.
|
pure virtual |
Implemented in dd::Spatial_reference_system_impl.
|
pure virtual |
Implemented in dd::Spatial_reference_system_impl.
|
pure virtual |
Checks whether the SRS definition is missing a TOWGS84 clause.
TOWGS84 clauses are not mandatory. However, in order to transform to/from an SRS, the SRS must either be WGS 84, be a projection of WGS 84, or have a TOWGS84 clause in the definition.
true | The SRS is missing a TOWGS84 clause. |
false | The SRS has or doesn't need a TOWGS84 clause. |
Implemented in dd::Spatial_reference_system_impl.
|
pure virtual |
Implemented in dd::Spatial_reference_system_impl.
|
pure virtual |
Implemented in dd::Spatial_reference_system_impl.
|
pure virtual |
Implemented in dd::Spatial_reference_system_impl.
|
pure virtual |
Implemented in dd::Spatial_reference_system_impl.
|
pure virtual |
Implemented in dd::Spatial_reference_system_impl.
|
pure virtual |
Gets the proj4 parameters for this SRS.
An empty string is returned in case we don't know how to create proj4 parameters for this SRS.
Implemented in dd::Spatial_reference_system_impl.
|
pure virtual |
Implemented in dd::Spatial_reference_system_impl.
|
pure virtual |
Implemented in dd::Spatial_reference_system_impl.
|
pure virtual |
Implemented in dd::Spatial_reference_system_impl.
|
pure virtual |
Implemented in dd::Spatial_reference_system_impl.
|
pure virtual |
Implemented in dd::Spatial_reference_system_impl.
|
pure virtual |
Implemented in dd::Spatial_reference_system_impl.
|
pure virtual |
Implemented in dd::Spatial_reference_system_impl.
|
pure virtual |
Implemented in dd::Spatial_reference_system_impl.
|
pure virtual |
Implemented in dd::Spatial_reference_system_impl.
|
pure virtual |
Implemented in dd::Spatial_reference_system_impl.
|
pure virtual |
Implemented in dd::Spatial_reference_system_impl.
|
pure virtual |
Converts a latitude value from the SRS unit and direction to the in-memory representation of latitude (radians, positive North).
[in] | d | Latitude in the SRS unit and axis direction. |
Implemented in dd::Spatial_reference_system_impl.
|
pure virtual |
Converts a longitude value from the SRS unit, direction and meridian to the in-memory representation of longitude (radians, positive East, Greenwich meridian).
[in] | d | Longitude in the SRS unit, axis direction and meridian. |
Implemented in dd::Spatial_reference_system_impl.
|
pure virtual |
Converts a coordinate value from the SRS unit to radians.
The conversion does not take axis direction or meridian shifting into account.
[in] | d | Value in the SRS unit. |
Implemented in dd::Spatial_reference_system_impl.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
static |