The source information for the airspace files is the CAA website at Permanent Airspace or Temporary Airspace. This information is in PDF form which is not very useful for our purpose. Therefore it needs to be converted into a form that can be used by the software that loads the maps into the GPS. The basic process is to:
The source information for the airspace files is the CAA website at Permanent Airspace or Temporary Airspace. The files are named according to the type of airspace they include. Click on the files you are interested in and choose to save them to the local disk.
Open each PDF file in Adobe Acrobat then choose "Save as Text" from the File menu. This option is not available in all versions of Acrobat, it is available in version 8. I recommend that you keep the same file name but change the extension to "txt".
The airspace definitions published by the CAA are in a set of documents. These files are not in a format that can be loaded into a GPS directly. They must be converted into a different format first. Unfortunately the files are not easily machine readable. They loosely follow a format but there are many variations and inconsistencies in the syntax. This Airspace converter software is very forgiving of these inconsistencies and can read most of the CAA's files directly. There are however a few errors that cannot be resolved and these need to be corrected by hand before running the airspace converter. The errors I have discovered so far and the corresponding corrections are documented on the Corrections page.
Once you have converted the CAA's PDF files into text files and made any necessary corrections you are ready to convert the format. To do that you use the airspace.exe file which you will find attached to this page. To run the airspace converter open a cmd window (in Windows click Start, Run then type "cmd" and click OK). In the cmd window change to the directory that contains the text formated source files (this is the working directory). Then execute the airspace converter...
<path to airspace converter>\airspace.exe
You will need Java version 1.5 or later installed on your computer to use this software.
Modifying the configuration:
By default the airspace converter will convert all available input files into all the available output formats. You can modify this configuration by putting a file named airspace.xml in the working directory and customising the contents to suit your needs. An example airspace.xml file (equivalent to the default configuration) is attached to this page. Simply save this file to your working directory then edit it to comment out the features you do not need.
When the conversion is complete you will have a bunch of output files in the working directory. The filenames and formats produced will be as configured in the airspace.xml file. Currently the supported output formats are TestFormat, which is used only for testing purposes, Polish Map (with .mp extension) which can be read by cGPSMapper and turned into Garmin format, fa5 which can be loaded directly into Brauniger and Flytec GPS/Varios and KML which can be viewed in Google Earth.
To produce maps that can be loaded into Garmin GPS devices we need to perform one additional step. To find out how to produce Garmin files from polish map files have a look at Building Garmin Map Sets.
The process for loading other formats will be documented later.
| Attachment | Size |
|---|---|
| airspace0.3.zip | 191.93 KB |
| airspace.xml | 8.67 KB |
This page lists the changes that were made to the airspace definitions supplied by the CAA before running them through the airspace converter. Some of these changes are just the removal of airspaces that are of no relevance to hang gliding and paragliding activities. Some changes are to fix inconsistencies in the syntax of the data so that it can be parsed and converted correctly. Some changes are are to fix errors that have be discovered in the airspace definitions.
The airspaces were removed because they cross the antimeridian and are not handled correctly by the Garmin and Google Earth software. They are not useful for hang gliding and paragliding purposes anyway.
Added "anticlockwise" to the last arc so that it reads:
"S 36 43 25.6, E 175 02 17.5, the arc of a circle of 20 NM radius centred on
S 36 47 12.5, E 174 37 52.4 (Whenuapai VORTAC) from
S 36 43 25.6, E 175 02 17.5 anticlockwise to
S 36 36 36.6, E 174 58 57.3 (transponder mandatory). "
Changed "S 38 54 22.7, E 176 47 43.0; the arc of a circle, 33 NM radius, centred on "
to "S 38 54 22.7, E 176 47 43.0; the arc of a circle of 33 NM radius centred on ".
Added a ";" to the end of the first arc i.e.
"S 39 05 55.3, E 176 19 39.8; a line joining" .
Changed "S 39 05 55.3, E 176 19 39.8; the arc of a circle, 33 NM radius, centred on "
to "S 39 05 55.3, E 176 19 39.8; the arc of a circle of 33 NM radius centred on "
Changed "S 177 45 18.8" to "E 177 45 18.8"
Deleted the struckout text.
Added the ";" to
"S 41 34 05.7, E 172 57 22.0; a line joining "
Deleted the struckout text.
Removed the ";" from
S 43 49 05.5, E 172 21 38.5; clockwise to
Changed this...
"All that airspace bounded by a circle of 0.41 NM (0.75 km) radius, centred on
S 37 37 49.3 E 176 10 18.9. "
to this...
"All that airspace bounded by a circle of 0.41 NM radius centred on
S 37 37 49.3, E 176 10 18.9. "
Refactored this into two sectors as in NZA 633 so that it could be parsed correctly.
Changed this...
All that airspace bounded by a circle of 3 NM radius, centred on
to this...
All that airspace bounded by a circle of 3 NM radius centred on
Added "by" to the first line...
All that airspace bounded by...
Removed the "," after 'radius".
Building the Garmin specific files and loading them into Garmin GPSs is the most difficult part of this whole exercise. Luckily there are a few tools available that make the process easier. Also the Airspace Converter is hardwired to produce maps with sensible default values that have been tested and proven to work.
The tools required are:
The basic process is to use the Airspace Converter to convert the airspace files you want into Polish Map (*.mp) format. Then you can usecGPSMapper to convert the mp files into Garmin database files. Then you have a choice - you can use either SendMap or MapSource to load the files into the GPS. Caution: both of these techniques will replace all the maps already loaded into the GPS. Since I already use MapSource for installing other maps, that is the technique I use. The MapSource technique is discussed below. You can find documentation on SendMap at the cGPSMapper website.
If you want to check the conversion to Polish Map format before you move on to building the Garmin files I recommend using GPSMapEdit available from http://www.geopainting.com/en/. Using GPSMapEdit you can open the *.mp files directly to view them. You can also edit them but I recommend editting the source text files and re-running the airspace converter instead, so that the conversion can be repeated later without loosing any edits made in GPSMapEdit.
The first step towards creating Garmin files is to use cGPSMapper to convert the Polish Map files into Garmin img files. To do this simply open a cmd window (On Windows click Start, Run then type cmd and click OK), and change to the directory where the *.mp files are. Then run the cGPSMapper executable and tell it the name of the file you want to convert, like this...
<path to the location of cGPSMapper>\cGPSMapper.exe ac filename.mp
Repeat this for each mp file. Each time cGPSMapper will write a new file to the current directory with an 8 digit file name and the img extension. The filename is taken from the ID field in the mp file.
To load the maps into MapSource you first need to build a preview map and database file. You can use cGPSMapper to do that, but it is much easier to use MapSetToolkit instead.
Open MapSetToolKit and you should see a screen like this...
If all has gone according to plan, when you next open MapSource, it should include your new 'product' (NZAirspace in our example), with whichever maps you have included, available for display and for transfer as usual to your GPS receiver.
Unfortunately, MapSource can not display multiple layers, so you can not see your excellent work in full glory combined with other layers over a basemap on the computer screen. For that you have to transfer your maps to your GPS.
But before you hit 'Transfer' > 'Send to device' > 'Maps':
Caution: every current method of transferring maps into Garmin GPS receivers overwrites the previously transferred maps.
Make sure that all of your maps are available in your MapSource program, and assemble those that you need into one group (this is what Garmin calls a Map set) for transfer together into the GPS. To do that you need to select the Map Tool icon on the tool bar (with a picture of a polygon) then select all the maps you want from the map display window. Hint - when they are selected they turn pink on the map display and they are listed in the maps tab on the left. Then you can upload the map set to the GPS receiver.
If you do not use MapSource, there are various free or shareware programs to assemble img files into mapsets and transfer them to your Garmin GPS unit. Examples include SendMap and GPSExplorer.
| Attachment | Size |
|---|---|
| custom.txt | 5.96 KB |