MySQL 9.1.0
Source Code Documentation
|
A projected spatial reference system. More...
#include <srs.h>
Public Member Functions | |
Projected_srs () | |
Srs_type | srs_type () const override |
Get the type of spatial reference system: projected, geometric, etc. More... | |
virtual bool | init (srid_t srid, wkt_parser::Projected_cs *p) |
Initialize from parse tree. More... | |
virtual Projection_type | projection_type () const =0 |
Get the map projection method. More... | |
Axis_direction | axis_direction (const int axis) const override |
Retrieve the axis direction of the spatial reference system. More... | |
double | linear_unit () const override |
Retrieve how long the unit of the spatial reference system is in meters. More... | |
double | angular_unit () const override |
Retrieve the angular unit relative to radians. More... | |
double | prime_meridian () const override |
Retrieve the prime meridian relative to Greenwich. More... | |
bool | has_towgs84 () const override |
Checks if this SRS has valid Bursa Wolf parameters. More... | |
bool | is_wgs84_based () const override |
Checks if this SRS is WGS 84 or a projection based on WGS 84. More... | |
std::string | partial_proj4_parameters () const |
Public Member Functions inherited from gis::srs::Spatial_reference_system | |
Spatial_reference_system ()=default | |
Spatial_reference_system (const Spatial_reference_system &)=default | |
Spatial_reference_system (Spatial_reference_system &&)=default | |
virtual | ~Spatial_reference_system ()=default |
virtual Spatial_reference_system * | clone ()=0 |
Clone the object. More... | |
virtual bool | can_be_modified_to (const Spatial_reference_system &srs) const =0 |
Checks if this SRS can be changed to another SRS without causing computational incompatibilities. More... | |
virtual std::string | proj4_parameters () const |
Retrieve the proj4 parameter string. More... | |
Protected Member Functions | |
bool | common_proj_parameters_can_be_modified_to (const Spatial_reference_system &srs) const |
Checks if the parameters that are common to all projections can safely be modified to another SRS without causing computational differences. More... | |
Private Attributes | |
Geographic_srs | m_geographic_srs |
The geographic SRS this SRS is projected from. More... | |
double | m_linear_unit |
Converson factor for the linar unit relative to meters. More... | |
Axis_direction | m_axes [2] |
Direction of x and y axis, respectively. More... | |
A projected spatial reference system.
|
inline |
|
inlineoverridevirtual |
Retrieve the angular unit relative to radians.
Implements gis::srs::Spatial_reference_system.
|
inlineoverridevirtual |
Retrieve the axis direction of the spatial reference system.
axis | axis number, zero indexed |
Implements gis::srs::Spatial_reference_system.
|
protected |
Checks if the parameters that are common to all projections can safely be modified to another SRS without causing computational differences.
This function is called by can_be_modified_to() in subclasses to check if the common parameters match. Projected_srs::can_be_modified_to is abstract to avoid that subclasses forget to implement can_be_modified_to().
srs | The SRS to compare with. |
true | The common projection parameters are the same in both SRSs. |
false | The two SRSs differ in the common projection parameters. |
|
inlineoverridevirtual |
Checks if this SRS has valid Bursa Wolf parameters.
true | Transformation parameters are specified. |
false | Transformation parameters are not specified. |
Implements gis::srs::Spatial_reference_system.
|
virtual |
Initialize from parse tree.
[in] | srid | Spatial reference system ID to use when reporting errors |
[in] | p | Parser output |
true | An error has occurred. The error has been flagged. |
false | Success |
Reimplemented in gis::srs::Unknown_projected_srs, gis::srs::Popular_visualisation_pseudo_mercator_srs, gis::srs::Lambert_azimuthal_equal_area_spherical_srs, gis::srs::Equidistant_cylindrical_srs, gis::srs::Equidistant_cylindrical_spherical_srs, gis::srs::Krovak_north_orientated_srs, gis::srs::Krovak_modified_srs, gis::srs::Krovak_modified_north_orientated_srs, gis::srs::Lambert_conic_conformal_2sp_michigan_srs, gis::srs::Colombia_urban_srs, gis::srs::Lambert_conic_conformal_1sp_srs, gis::srs::Lambert_conic_conformal_2sp_srs, gis::srs::Lambert_conic_conformal_2sp_belgium_srs, gis::srs::Mercator_variant_a_srs, gis::srs::Mercator_variant_b_srs, gis::srs::Cassini_soldner_srs, gis::srs::Transverse_mercator_srs, gis::srs::Transverse_mercator_south_orientated_srs, gis::srs::Oblique_stereographic_srs, gis::srs::Polar_stereographic_variant_a_srs, gis::srs::New_zealand_map_grid_srs, gis::srs::Hotine_oblique_mercator_variant_a_srs, gis::srs::Laborde_oblique_mercator_srs, gis::srs::Hotine_oblique_mercator_variant_b_srs, gis::srs::Tunisia_mining_grid_srs, gis::srs::Lambert_conic_near_conformal_srs, gis::srs::American_polyconic_srs, gis::srs::Krovak_srs, gis::srs::Lambert_azimuthal_equal_area_srs, gis::srs::Albers_equal_area_srs, gis::srs::Transverse_mercator_zoned_grid_system_srs, gis::srs::Lambert_conic_conformal_west_orientated_srs, gis::srs::Bonne_south_orientated_srs, gis::srs::Polar_stereographic_variant_b_srs, gis::srs::Polar_stereographic_variant_c_srs, gis::srs::Guam_projection_srs, gis::srs::Modified_azimuthal_equidistant_srs, gis::srs::Hyperbolic_cassini_soldner_srs, gis::srs::Lambert_cylindrical_equal_area_spherical_srs, and gis::srs::Lambert_cylindrical_equal_area_srs.
|
inlineoverridevirtual |
Checks if this SRS is WGS 84 or a projection based on WGS 84.
true | This SRS is WGS 84 or a projection of WGS 84. |
false | This SRS is neither WGS 84 or a projection of WGS 84. |
Implements gis::srs::Spatial_reference_system.
|
inlineoverridevirtual |
Retrieve how long the unit of the spatial reference system is in meters.
Implements gis::srs::Spatial_reference_system.
|
inline |
|
inlineoverridevirtual |
Retrieve the prime meridian relative to Greenwich.
The prime meridian is returned in the angular unit of the SRS. Positive numbers are East of Greenwich.
Implements gis::srs::Spatial_reference_system.
|
pure virtual |
Get the map projection method.
Implemented in gis::srs::Unknown_projected_srs, gis::srs::Popular_visualisation_pseudo_mercator_srs, gis::srs::Lambert_azimuthal_equal_area_spherical_srs, gis::srs::Equidistant_cylindrical_srs, gis::srs::Equidistant_cylindrical_spherical_srs, gis::srs::Krovak_north_orientated_srs, gis::srs::Krovak_modified_srs, gis::srs::Krovak_modified_north_orientated_srs, gis::srs::Lambert_conic_conformal_2sp_michigan_srs, gis::srs::Colombia_urban_srs, gis::srs::Lambert_conic_conformal_1sp_srs, gis::srs::Lambert_conic_conformal_2sp_srs, gis::srs::Lambert_conic_conformal_2sp_belgium_srs, gis::srs::Mercator_variant_a_srs, gis::srs::Mercator_variant_b_srs, gis::srs::Cassini_soldner_srs, gis::srs::Transverse_mercator_srs, gis::srs::Transverse_mercator_south_orientated_srs, gis::srs::Oblique_stereographic_srs, gis::srs::Polar_stereographic_variant_a_srs, gis::srs::New_zealand_map_grid_srs, gis::srs::Hotine_oblique_mercator_variant_a_srs, gis::srs::Laborde_oblique_mercator_srs, gis::srs::Hotine_oblique_mercator_variant_b_srs, gis::srs::Tunisia_mining_grid_srs, gis::srs::Lambert_conic_near_conformal_srs, gis::srs::American_polyconic_srs, gis::srs::Krovak_srs, gis::srs::Lambert_azimuthal_equal_area_srs, gis::srs::Albers_equal_area_srs, gis::srs::Transverse_mercator_zoned_grid_system_srs, gis::srs::Lambert_conic_conformal_west_orientated_srs, gis::srs::Bonne_south_orientated_srs, gis::srs::Polar_stereographic_variant_b_srs, gis::srs::Polar_stereographic_variant_c_srs, gis::srs::Guam_projection_srs, gis::srs::Modified_azimuthal_equidistant_srs, gis::srs::Hyperbolic_cassini_soldner_srs, gis::srs::Lambert_cylindrical_equal_area_spherical_srs, and gis::srs::Lambert_cylindrical_equal_area_srs.
|
inlineoverridevirtual |
Get the type of spatial reference system: projected, geometric, etc.
Implements gis::srs::Spatial_reference_system.
|
private |
Direction of x and y axis, respectively.
|
private |
The geographic SRS this SRS is projected from.
|
private |
Converson factor for the linar unit relative to meters.