mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 14:55:36 +08:00
committed by
Mathew Sutcliffe
parent
bf1837b414
commit
76e2421ba2
@@ -5,6 +5,11 @@
|
||||
|
||||
#include "blackmisc/coordinategeodetic.h"
|
||||
#include "blackmisc/blackmiscfreefunctions.h"
|
||||
#include "mathematics.h"
|
||||
#include <QtCore/qmath.h>
|
||||
|
||||
using namespace BlackMisc::PhysicalQuantities;
|
||||
using namespace BlackMisc::Math;
|
||||
|
||||
namespace BlackMisc
|
||||
{
|
||||
@@ -80,6 +85,15 @@ namespace BlackMisc
|
||||
return BlackMisc::calculateHash(hashs, "CCoordinateGeodetic");
|
||||
}
|
||||
|
||||
/*
|
||||
* From WGS84 coordinates
|
||||
*/
|
||||
CCoordinateGeodetic CCoordinateGeodetic::fromWgs84(const QString &latitudeWgs84, const QString &longitudeWgs84, const CLength height)
|
||||
{
|
||||
CLatitude lat = CLatitude::fromWgs84(latitudeWgs84);
|
||||
CLongitude lon = CLongitude::fromWgs84(longitudeWgs84);
|
||||
return CCoordinateGeodetic(lat, lon, height);
|
||||
}
|
||||
|
||||
/*
|
||||
* Great circle distance
|
||||
|
||||
@@ -226,6 +226,15 @@ namespace BlackMisc
|
||||
* Register metadata
|
||||
*/
|
||||
static void registerMetadata();
|
||||
|
||||
/*!
|
||||
* \brief Coordinate by WGS84 position data
|
||||
* \param latitudeWgs84
|
||||
* \param longitudeWgs84
|
||||
* \param height
|
||||
* \return
|
||||
*/
|
||||
static CCoordinateGeodetic fromWgs84(const QString &latitudeWgs84, const QString &longitudeWgs84, const BlackMisc::PhysicalQuantities::CLength height = BlackMisc::PhysicalQuantities::CLength());
|
||||
};
|
||||
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user