Class Utm
Defined in File sbg_utm.h
Class Documentation
-
class Utm
Class for Utm related data
Public Functions
-
Utm() = default
Default constructor.
-
Utm(double latitude, double longitude)
Constructor.
- Parameters:
latitude – [in] Latitude in degree [-90 to +90].
longitude – [in] Longitude in degree [-180 to +180].
-
bool isInit() const
Returns if the UTM zone has been initialized.
- Returns:
True if the UTM zone has been initialized.
-
int getZoneNumber() const
Returns UTM zone number.
- Returns:
Zone number.
-
double getMeridian() const
Returns UTM meridian.
- Returns:
Meridian in degree.
-
char getLetterDesignator() const
Returns UTM letter designator.
- Returns:
Letter designator.
-
void init(double latitude, double longitude)
Initialize UTM zone.
- Parameters:
latitude – [in] Latitude in degree [-90 to +90].
longitude – [in] Longitude in degree [-180 to +180].
-
void clear()
Reset the instance to uninitialized UTM zone.
-
std::array<double, 2> computeEastingNorthing(double latitude, double longitude) const
Convert latitude, longitude, to easting and northing.
- Parameters:
latitude – [in] Latitude, in degrees [-90 to +90].
longitude – [in] Longitude, in degrees [-180 to +180].
- Returns:
Array containing easting then northing in meters.
-
Utm() = default