QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
QGCGeo.h File Reference

Geographic coordinate conversion utilities using GeographicLib. More...

#include <QtCore/QLoggingCategory>
#include <QtGui/QVector3D>
#include <QtPositioning/QGeoCoordinate>
+ Include dependency graph for QGCGeo.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  QGCGeo
 

Functions

void QGCGeo::convertGeoToNed (const QGeoCoordinate &coord, const QGeoCoordinate &origin, double &x, double &y, double &z)
 
void QGCGeo::convertNedToGeo (double x, double y, double z, const QGeoCoordinate &origin, QGeoCoordinate &coord)
 
QVector3D QGCGeo::convertGpsToEnu (const QGeoCoordinate &coord, const QGeoCoordinate &ref)
 
QGeoCoordinate QGCGeo::convertEnuToGps (const QVector3D &enu, const QGeoCoordinate &ref)
 
QVector3D QGCGeo::convertGeodeticToEcef (const QGeoCoordinate &coord)
 
QGeoCoordinate QGCGeo::convertEcefToGeodetic (const QVector3D &ecef)
 
QVector3D QGCGeo::convertEcefToEnu (const QVector3D &ecef, const QGeoCoordinate &ref)
 
QVector3D QGCGeo::convertEnuToEcef (const QVector3D &enu, const QGeoCoordinate &ref)
 
int QGCGeo::convertGeoToUTM (const QGeoCoordinate &coord, double &easting, double &northing)
 
bool QGCGeo::convertUTMToGeo (double easting, double northing, int zone, bool southhemi, QGeoCoordinate &coord)
 
QString QGCGeo::convertGeoToMGRS (const QGeoCoordinate &coord)
 
bool QGCGeo::convertMGRSToGeo (const QString &mgrs, QGeoCoordinate &coord)
 
double QGCGeo::geodesicDistance (const QGeoCoordinate &from, const QGeoCoordinate &to)
 
double QGCGeo::geodesicAzimuth (const QGeoCoordinate &from, const QGeoCoordinate &to)
 
QGeoCoordinate QGCGeo::geodesicDestination (const QGeoCoordinate &from, double azimuth, double distance)
 
double QGCGeo::pathLength (const QList< QGeoCoordinate > &path)
 
double QGCGeo::polygonArea (const QList< QGeoCoordinate > &polygon)
 
double QGCGeo::polygonPerimeter (const QList< QGeoCoordinate > &polygon)
 
QList< QGeoCoordinate > QGCGeo::interpolatePath (const QGeoCoordinate &from, const QGeoCoordinate &to, int numPoints)
 
QGeoCoordinate QGCGeo::interpolateAtDistance (const QGeoCoordinate &from, const QGeoCoordinate &to, double distance)
 

Detailed Description

Geographic coordinate conversion utilities using GeographicLib.

Provides coordinate transformations between various reference frames:

  • Geodetic (lat/lon/alt) - WGS84 ellipsoid
  • NED (North/East/Down) - Local tangent plane
  • ENU (East/North/Up) - Local tangent plane
  • ECEF (Earth-Centered Earth-Fixed) - Cartesian
  • UTM (Universal Transverse Mercator)
  • MGRS (Military Grid Reference System)

All conversions use the WGS84 ellipsoid model for accuracy.

Definition in file QGCGeo.h.