mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 18:25:37 +08:00
refs #837 ICoordinateGeodetic::geodeticHeight is a CAltitude.
This commit is contained in:
@@ -61,7 +61,7 @@ namespace BlackMisc
|
||||
{
|
||||
CAirport airport(json.value(prefix + "icao").toString());
|
||||
airport.setDescriptiveName(json.value(prefix + "name").toString());
|
||||
airport.setElevation(CLength(json.value(prefix + "altitude").toInt(), CLengthUnit::ft()));
|
||||
airport.setElevation(CAltitude(json.value(prefix + "altitude").toInt(), CLengthUnit::ft()));
|
||||
const CCoordinateGeodetic pos(json.value(prefix + "latitude").toDouble(), json.value(prefix + "longitude").toDouble(), 0);
|
||||
airport.setPosition(pos);
|
||||
airport.setOperating(json.value(prefix + "operating").toString() == QStringLiteral("Y"));
|
||||
|
||||
Reference in New Issue
Block a user