Ref T225, set height to NULL

This commit is contained in:
Klaus Basan
2018-01-18 14:37:52 +01:00
parent b574ede2e2
commit 1948d067e4
2 changed files with 9 additions and 0 deletions

View File

@@ -247,6 +247,12 @@ namespace BlackMisc
m_z = latitude.sin();
}
void CCoordinateGeodetic::setGeodeticHeightToNull()
{
static const CAltitude na = CAltitude(0, CAltitude::MeanSeaLevel, CLengthUnit::nullUnit());
this->setGeodeticHeight(na);
}
CCoordinateGeodetic &CCoordinateGeodetic::switchUnit(const CLengthUnit &unit)
{
m_geodeticHeight.switchUnit(unit);