Position and orientation relative to a WGS84 Datum. More...
#include <BaseGeoCoord.h>
Public Member Functions | |
bool | IsValid () const |
Returns whether the Datum is valid or not. More... | |
int | GetError () const |
Gets the error code associated with constructor failure if IsValid is false. More... | |
WCharCP | GetErrorMessage (WStringR errorMsg) const |
Gets the error message associated with constructor failure if IsValid is false. More... | |
WCharCP | GetName () const |
Gets the name of the Datum. More... | |
StatusInt | SetName (WCharCP value) |
Sets the key name of the Datum. More... | |
WCharCP | GetDescription () const |
Gets the description of the Datum. More... | |
StatusInt | SetDescription (WCharCP value) |
Sets the description of the Datum. More... | |
WCharCP | GetSource (WStringR source) const |
Gets the source of the Datum. More... | |
StatusInt | SetSource (WCharCP value) |
Sets the source of the Datum. More... | |
WGS84ConvertCode | GetConvertToWGS84MethodCode () const |
Gets the method used to convert longitude/latitude from this Datum to the WGS84 datum. More... | |
StatusInt | SetConvertToWGS84MethodCode (WGS84ConvertCode value) |
Sets the method used to convert longitude/latitude from this Datum to the WGS84 datum. More... | |
void | GetDelta (DPoint3dR delta) const |
Gets the vector from the geocenter of the WGS84 Datum to the geocenter of this Datum. More... | |
StatusInt | SetDelta (DPoint3dCR delta) |
Sets the vector from the geocenter of the WGS84 Datum to the geocenter of this Datum. More... | |
void | GetRotation (DPoint3dR rotation) const |
Gets the angles from the WGS84 x, y, and z axes to those of this Datum. More... | |
StatusInt | SetRotation (DPoint3dCR rotation) |
Sets the angles from the WGS84 x, y, and z axes to those of this Datum. More... | |
double | GetScale () const |
Gets the datum transformation scaling in parts per million if known. More... | |
StatusInt | SetScale (double scalePPM) |
Sets the datum transformation scaling in parts per million if known. More... | |
int | GetEPSGCode () const |
Gets the EPSG code for this Datum, if known. More... | |
WCharCP | GetEllipsoidName () const |
Gets the key name of the Ellipsoid used in this Datum. More... | |
int | GetEllipsoidCode () const |
Gets the internal index of the Ellipsoid used in this Datum. More... | |
StatusInt | SetEllipsoidCode (int ellipsoidCode) |
Gets the internal index of the Ellipsoid used in this Datum. More... | |
WCharCP | GetEllipsoidDescription () const |
Gets the description of the Ellipsoid used in this Datum. More... | |
WCharCP | GetEllipsoidSource (WStringR ellipsoidSource) const |
Gets the source of the Ellipsoid used in this Datum. More... | |
double | GetEllipsoidPolarRadius () const |
Gets the polar radius of the Coordinate System. More... | |
double | GetEllipsoidEquatorialRadius () const |
Gets the equatorial radius of the Ellipsoid. More... | |
double | GetEllipsoidEccentricity () const |
Gets the eccentricity value for the Ellipsoid. More... | |
EllipsoidCP | GetEllipsoid () const |
Gets the Ellipsoid used in this Datum. More... | |
void | ParametersValid (bool &deltaValid, bool &rotationValid, bool &scaleValid) const |
Returns whether the delta, rotation, and scale parameters are valid for this Datum. More... | |
void | Destroy () const |
Free this Datum. More... | |
Static Public Member Functions | |
static DatumCP | CreateDatum (WCharCP keyName) |
Initializes a new instance of the Datum class. More... | |
static DatumEnumeratorP | CreateEnumerator () |
Factory method to create a DatumEnumerator. More... | |
Position and orientation relative to a WGS84 Datum.
Initializes a new instance of the Datum class.
|
static |
Factory method to create a DatumEnumerator.
void Destroy | ( | ) | const |
Free this Datum.
WGS84ConvertCode GetConvertToWGS84MethodCode | ( | ) | const |
Gets the method used to convert longitude/latitude from this Datum to the WGS84 datum.
void GetDelta | ( | DPoint3dR | delta | ) | const |
WCharCP GetDescription | ( | ) | const |
EllipsoidCP GetEllipsoid | ( | ) | const |
int GetEllipsoidCode | ( | ) | const |
WCharCP GetEllipsoidDescription | ( | ) | const |
double GetEllipsoidEccentricity | ( | ) | const |
double GetEllipsoidEquatorialRadius | ( | ) | const |
WCharCP GetEllipsoidName | ( | ) | const |
double GetEllipsoidPolarRadius | ( | ) | const |
Gets the polar radius of the Coordinate System.
int GetEPSGCode | ( | ) | const |
Gets the EPSG code for this Datum, if known.
int GetError | ( | ) | const |
Gets the error code associated with constructor failure if IsValid is false.
Gets the error message associated with constructor failure if IsValid is false.
void GetRotation | ( | DPoint3dR | rotation | ) | const |
Gets the angles from the WGS84 x, y, and z axes to those of this Datum.
rotation | OUT The rotation angles. |
double GetScale | ( | ) | const |
Gets the datum transformation scaling in parts per million if known.
bool IsValid | ( | ) | const |
void ParametersValid | ( | bool & | deltaValid, |
bool & | rotationValid, | ||
bool & | scaleValid | ||
) | const |
Returns whether the delta, rotation, and scale parameters are valid for this Datum.
deltaValid | OUT Returns true if the datum is valid and its WGS84ConvertCode indicates that the delta parameters are used. |
rotationValid | OUT Returns true if the datum is valid and its WGS84ConvertCode indicates that the rotation parameters are used. |
scaleValid | OUT Returns true if the datum is valid and its WGS84ConvertCode indicates that the scale parameter is used. |
StatusInt SetConvertToWGS84MethodCode | ( | WGS84ConvertCode | value | ) |
Sets the method used to convert longitude/latitude from this Datum to the WGS84 datum.
StatusInt SetDelta | ( | DPoint3dCR | delta | ) |
Sets the description of the Datum.
StatusInt SetEllipsoidCode | ( | int | ellipsoidCode | ) |
Sets the key name of the Datum.
StatusInt SetRotation | ( | DPoint3dCR | rotation | ) |
Sets the angles from the WGS84 x, y, and z axes to those of this Datum.
rotation | IN The rotation angles. |
StatusInt SetScale | ( | double | scalePPM | ) |
Sets the datum transformation scaling in parts per million if known.
scalePPM | IN The scale in parts per million. |
Sets the source of the Datum.