-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
verdesroches
committed
Mar 7, 2016
0 parents
commit 6cefba7
Showing
24 changed files
with
21,844 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#------------------------------------------------- | ||
# | ||
# Project created by QtCreator 2016-02-21T13:30:58 | ||
# | ||
#------------------------------------------------- | ||
|
||
QT += core gui xml | ||
|
||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets | ||
|
||
TARGET = QOpenAip2Kml | ||
TEMPLATE = app | ||
|
||
|
||
SOURCES += main.cpp\ | ||
qopenaip2kml.cpp \ | ||
aeronauticaldatahandler.cpp \ | ||
openaipfileparser.cpp \ | ||
kmlwriter.cpp \ | ||
appdatahandler.cpp | ||
|
||
HEADERS += qopenaip2kml.h \ | ||
qopenaip2kmltypes.h \ | ||
aeronauticaldatahandler.h \ | ||
openaipfileparser.h \ | ||
kmlwriter.h \ | ||
appdatahandler.h | ||
|
||
FORMS += qopenaip2kml.ui | ||
|
||
DISTFILES += \ | ||
qopenaip2kml.rc | ||
|
||
RC_FILE = qopenaip2kml.rc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
/* This software is aimed to convert AIP files to KML file. | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#include "aeronauticaldatahandler.h" | ||
|
||
AeronauticalDataHandler::AeronauticalDataHandler(QObject *parent) : QObject(parent) | ||
{ | ||
|
||
} | ||
|
||
AeronauticalDataHandler::~AeronauticalDataHandler() | ||
{ | ||
|
||
} | ||
|
||
void AeronauticalDataHandler::addAirspace(TAirspace p_airspace) | ||
{ | ||
airspaces.append(p_airspace); | ||
} | ||
|
||
const QVector<TAirspace> AeronauticalDataHandler::getAirspaces() | ||
{ | ||
return airspaces; | ||
} | ||
|
||
QVector<TAirspace> AeronauticalDataHandler::getAirspace(TAirspaceCategory p_category) | ||
{ | ||
QVector<TAirspace> airspaceByCategory; | ||
|
||
for(int k = 0; k < airspaces.size() ; k++) | ||
{ | ||
if(airspaces.at(k).category == p_category) | ||
{ | ||
airspaceByCategory.append(airspaces.at(k)); | ||
} | ||
|
||
} | ||
return airspaceByCategory; | ||
} | ||
|
||
QString AeronauticalDataHandler::getGeometryAsString(QVector<TLatLon> p_latLon, int p_altitude) | ||
{ | ||
QString geometry; | ||
|
||
for(int k = 0 ; k < p_latLon.size() ; k++) | ||
{ | ||
geometry.append(QString::number(p_latLon.at(k).longitude)); | ||
geometry.append(","); | ||
geometry.append(QString::number(p_latLon.at(k).latitude)); | ||
geometry.append(","); | ||
geometry.append(QString::number(p_altitude)); | ||
geometry.append(" "); | ||
} | ||
|
||
return geometry; | ||
} | ||
|
||
QString AeronauticalDataHandler::getGeometryAsStringWithoutAltitude(QVector<TLatLon> p_latLon) | ||
{ | ||
QString geometry; | ||
|
||
for(int k = 0 ; k < p_latLon.size() ; k++) | ||
{ | ||
geometry.append(QString::number(p_latLon.at(k).longitude)); | ||
geometry.append(","); | ||
geometry.append(QString::number(p_latLon.at(k).latitude)); | ||
geometry.append(" "); | ||
} | ||
|
||
return geometry; | ||
} | ||
|
||
void AeronauticalDataHandler::clean() | ||
{ | ||
airspaces.clear(); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* This software is aimed to convert AIP files to KML file. | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#ifndef AERONAUTICALDATAHANDLER_H | ||
#define AERONAUTICALDATAHANDLER_H | ||
|
||
#include <QObject> | ||
#include <QVector> | ||
#include <QDebug> | ||
#include <qopenaip2kmltypes.h> | ||
|
||
class AeronauticalDataHandler : public QObject | ||
{ | ||
Q_OBJECT | ||
public: | ||
explicit AeronauticalDataHandler(QObject *parent = 0); | ||
~AeronauticalDataHandler(); | ||
void addAirspace(TAirspace p_airspace); | ||
void clean(); | ||
const QVector<TAirspace> getAirspaces(); | ||
QVector<TAirspace> getAirspace(TAirspaceCategory p_category); | ||
static QString getGeometryAsString(QVector<TLatLon> p_latLon, int p_altitude); | ||
static QString getGeometryAsStringWithoutAltitude(QVector<TLatLon> p_latLon); | ||
|
||
signals: | ||
|
||
public slots: | ||
|
||
private: | ||
QVector<TAirspace> airspaces; | ||
}; | ||
|
||
#endif // AERONAUTICALDATAHANDLER_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* This software is aimed to convert AIP files to KML file. | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#include "appdatahandler.h" | ||
|
||
AppDataHandler::AppDataHandler(QObject *parent) : QObject(parent) | ||
{ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* This software is aimed to convert AIP files to KML file. | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#ifndef APPDATAHANDLER_H | ||
#define APPDATAHANDLER_H | ||
|
||
#include <QObject> | ||
|
||
enum TErrorLevel | ||
{ | ||
TErrorLevel_NOERROR, | ||
TErrorLevel_CONTINUE, | ||
TErrorLevel_STOP | ||
}; | ||
|
||
class AppDataHandler : public QObject | ||
{ | ||
Q_OBJECT | ||
public: | ||
explicit AppDataHandler(QObject *parent = 0); | ||
|
||
signals: | ||
|
||
public slots: | ||
|
||
}; | ||
|
||
#endif // APPDATAHANDLER_H |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.