QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
TerrainQueryCopernicus.h
Go to the documentation of this file.
1#pragma once
2
3#include <QtCore/QLoggingCategory>
4#include <QtCore/QObject>
5
7
8Q_DECLARE_LOGGING_CATEGORY(TerrainQueryCopernicusLog)
9
10class QGeoCoordinate;
11
13{
14 Q_OBJECT
15
16public:
17 explicit TerrainQueryCopernicus(QObject *parent = nullptr);
19
20 void requestCoordinateHeights(const QList<QGeoCoordinate> &coordinates) final;
21 void requestPathHeights(const QGeoCoordinate &fromCoord, const QGeoCoordinate &toCoord) final;
22 void requestCarpetHeights(const QGeoCoordinate &swCoord, const QGeoCoordinate &neCoord, bool statsOnly) final;
23
24private slots:
25 void _requestFinished() final;
26
27private:
28 void _sendQuery(const QString &path, const QUrlQuery &urlQuery);
29 void _parseCoordinateData(const QJsonValue &coordinateJson);
30 void _parsePathData(const QJsonValue &pathJson);
31 void _parseCarpetData(const QJsonValue &carpetJson);
32
33 bool _carpetStatsOnly = false;
34};
Q_DECLARE_LOGGING_CATEGORY(AndroidSerialLog)
void requestPathHeights(const QGeoCoordinate &fromCoord, const QGeoCoordinate &toCoord) final
void requestCoordinateHeights(const QList< QGeoCoordinate > &coordinates) final
void requestCarpetHeights(const QGeoCoordinate &swCoord, const QGeoCoordinate &neCoord, bool statsOnly) final