Author: Detlev Hoffmann (info at gunduran.de)
With this small Python program you could download reporting points from OpenAIP and create csv files that could be imported into LittleNavMap.
These userpoints will then be shown as waypoints and the airport is a tag. If the reporting point is a compulsatory (mandatory) reporting point it is also indicated.
- Please have Pyhton 3.x installed Python.org
- Create a folder in a place you like (e.g. e:\tools\converter)
- unpack the openaiptocsv.zip file to this folder
- check if python is installed correctly open a terminal (Windows cmd) and type
python --version
As we need to access google storage services, we need to install this package from google using the pip command.
Two ways:
- Directly into the current python environment ==> not recommended, but ok
- Create a virtual python environment ==> recommended and easy
Prepare a virtual environment
cd your folder
e.g. cd e:\tools\converterpython -m venv env
this create a new virtual envitonment in the folder "env".\env\scripts\activate
this activates the environment, prompt should change to "(env) folder...".- If you are running the commands in windows powershell, you need to use
.\env\scripts\activate.ps1
and potentially need to allow the execution of such scripts viaset-executionpolicy RemoteSigned -Scope CurrentUser
- If you are running the commands in windows powershell, you need to use
Remember to activate the environment always before running the commands
Now, wheter in the virtual environment or in the global python installation, you coudl install the package
pip install --upgrade google-cloud-storage
python openaiptocsv.py --help
(will show you the help)
Normal use cases:
-
python openaiptocsv.py -d de
Downloads from Google Storage the needed files for de = Germany -
python openaiptocsv.py -da
Downloads all available countries -
python openaiptocsv.py -w de
creates the csv file for all German airports -
python openaiptocsv.py -i EDDK -c de
creates the points for Cologne
Folder | Description |
---|---|
\openAIP_files\ |
Storage for the downloaded files |
\Userpoints\ |
Created user points |
1.3 Initial Version