4#include <QtCore/QVariantList>
5#include <QtPositioning/QGeoCoordinate>
14 bool loadPolygonFromFile(
const QString &filePath, QList<QGeoCoordinate> &vertices, QString &errorString);
15 bool loadPolylineFromFile(
const QString &filePath, QList<QGeoCoordinate> &coords, QString &errorString);
21 bool altitudeRequired,
22 QGeoCoordinate &coordinate,
23 QString &errorString);
29 QJsonValue &jsonValue);
34 bool altitudeRequired,
35 QGeoCoordinate &coordinate,
36 QString &errorString);
41 QJsonValue &jsonValue);
45 bool altitudeRequired,
46 QVariantList &rgVarPoints,
47 QString &errorString);
49 bool altitudeRequired,
50 QList<QGeoCoordinate> &rgPoints,
51 QString &errorString);
56 QJsonValue &jsonValue);
59 QJsonValue &jsonValue);
bool loadGeoCoordinateArray(const QJsonValue &jsonValue, bool altitudeRequired, QVariantList &rgVarPoints, QString &errorString)
Loads a list of QGeoCoordinates (QGC plan format) from a json array.
void saveGeoCoordinateArray(const QVariantList &rgVarPoints, bool writeAltitude, QJsonValue &jsonValue)
Saves a list of QGeoCoordinates (QGC plan format) to a json array.
bool loadGeoCoordinate(const QJsonValue &jsonValue, bool altitudeRequired, QGeoCoordinate &coordinate, QString &errorString)
ShapeFileHelper::ShapeType determineShapeType(const QString &filePath, QString &errorString)
bool loadPolylineFromFile(const QString &filePath, QList< QGeoCoordinate > &coords, QString &errorString)
bool loadGeoJsonCoordinate(const QJsonValue &jsonValue, bool altitudeRequired, QGeoCoordinate &coordinate, QString &errorString)
returned error string if load failure
void saveGeoJsonCoordinate(const QGeoCoordinate &coordinate, bool writeAltitude, QJsonValue &jsonValue)
json value to save to
void saveGeoCoordinate(const QGeoCoordinate &coordinate, bool writeAltitude, QJsonValue &jsonValue)
Saves a QGeoCoordinate as [lat, lon, alt] array (QGC plan format).
bool loadPolygonFromFile(const QString &filePath, QList< QGeoCoordinate > &vertices, QString &errorString)