Enroute Flight Navigation
A navigation app for VFR pilots
FileFormats::OpenAir Class Reference

OpenAIR file support class. More...

#include <OpenAir.h>

Static Public Member Functions

static bool isValid (const QString &fileName, QString *info=nullptr)
 Check if file contains valid OpenAIR data.
static QJsonDocument parse (const QString &fileName, QStringList &errorList, QStringList &warningList)
 Reads a file in openAIR format and returns a GeoJSON document.

Detailed Description

OpenAIR file support class.

The methods of this class read airspace files in OpenAIR format, as specified here: http://www.winpilot.com/UsersGuide/UserAirspace.asp

Definition at line 33 of file OpenAir.h.

Member Function Documentation

◆ isValid()

bool FileFormats::OpenAir::isValid ( const QString & fileName,
QString * info = nullptr )
static

Check if file contains valid OpenAIR data.

Parameters
fileNameName of a file
infoPointer to a string where additional information will be stored.
Returns
True if the file is likely to contain valid OpenAIR data.

◆ parse()

QJsonDocument FileFormats::OpenAir::parse ( const QString & fileName,
QStringList & errorList,
QStringList & warningList )
static

Reads a file in openAIR format and returns a GeoJSON document.

Parameters
fileNameName of the openAIR file
errorListReference to a QStringList where error messages will be appended.
warningListReference to a QStringList where warning messages will be appended.
Returns
If no error messages were appended, returns a QJsonDocument with GeoJSON as specified in https://github.com/Akaflieg-Freiburg/enrouteServer/wiki/GeoJSON-files-used-in-enroute-flight-navigation. If error messages were appended, returns an empty QJsonDocument

The documentation for this class was generated from the following file: