Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature geoid #34

Merged
merged 27 commits into from
Apr 29, 2022
Merged

Feature geoid #34

merged 27 commits into from
Apr 29, 2022

Conversation

till213
Copy link
Owner

@till213 till213 commented Apr 29, 2022

Add support for earth gravity model (EGM 2008).

  • Altitude conversion applied for GPX and IGC import (optional) and export (when EGM available)
  • Add GeographicLib for altitude conversions, using the EGM

till213 added 27 commits April 10, 2022 18:49
- Fix include path
- C++Now 2017: Daniel Pfeifer "Effective CMake"
  * https://www.youtube.com/watch?v=bsXLMQ6WgIk
- Latitude is in [-90, 90], longitude in [-180, 180]
- No altitude conversion for KML import (altitudes are already "above
sea level")
- FIX: properly convert altitude to meters before WGS84 ellipsoid ->
geoid conversion
- Make sure that the proper c++ compiler is selected in the Qt toolkit
(Qt Creator)
- Namely: /Applications/Xcode.app/Contents/Developer/Toolchains/
XcodeDefault.xctoolchain/usr/bin/c++
- Automatically initialise git submodules when configuring build system
(when executing cmake)
- Introduce SD_FETCH_EGM option (cmake - default: OFF)
- Check for existence in the expected Resources directory
- macOS: within the app bundle (Resources subfolder)
- INTERFACE or LIBRARY, but not CUSTOM targets
@till213 till213 linked an issue Apr 29, 2022 that may be closed by this pull request
@till213 till213 merged commit 986dc26 into main Apr 29, 2022
@till213 till213 deleted the feature-geoid branch April 29, 2022 19:04
till213 added a commit that referenced this pull request Dec 3, 2022
* Add geographiclib v1.52

* Add GeographicLib as dependency (WIP - won't compile on Windows)

* Update README.md

* Update README.md

* Refactor CMakeLists.txt

- Fix include path
- C++Now 2017: Daniel Pfeifer "Effective CMake"
  * https://www.youtube.com/watch?v=bsXLMQ6WgIk

* Add EGM2008 geoid with 5' resolution

* Add GeographicLib info

* Fix latitude/longitude range

- Latitude is in [-90, 90], longitude in [-180, 180]

* Add altitude conversion option to IGC import

- No altitude conversion for KML import (altitudes are already "above
sea level")

* Add altitude conversion geoid -> WGS84 ellipsoid to IGC export

* Bump logbook version to 0.11

* GPX export: convert to height above WGS84 ellipsoid

- FIX: properly convert altitude to meters before WGS84 ellipsoid ->
geoid conversion

* Move the WGS84 ellipsoid <-> EGM geoid height conversions to Convert

* Fix initialisation order

* Remove -lc++ linker dependency (macOS)

- Make sure that the proper c++ compiler is selected in the Qt toolkit
(Qt Creator)
- Namely: /Applications/Xcode.app/Contents/Developer/Toolchains/
XcodeDefault.xctoolchain/usr/bin/c++

* Prepare download of EGM file (cmake)

* Fix logbook date selection column width

* Update

* Modernise cmake

- Automatically initialise git submodules when configuring build system
(when executing cmake)

* Update build instructions: GIT_INIT_SUBMODULE option

* Optionally download earth gravity model (EGM)

- Introduce SD_FETCH_EGM option (cmake - default: OFF)

* Place EGM files into app bundle (macOS)

* Delete singletons only after main window

* EGM file path settings

- Check for existence in the expected Resources directory
- macOS: within the app bundle (Resources subfolder)

* Disable altitude conversion checkbox if no EGM available

* INTERFACE targets do not support POST custom commands

* Can only link to actual targets

- INTERFACE or LIBRARY, but not CUSTOM targets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Real life flight KML files start with the plane under ground
1 participant