Merging (and editing) .apt files

Moderators: Uros, OXO, JBr

Post Reply
User avatar
Bre901
Posts: 1790
Joined: Tue Nov 22, 2016 8:57 pm
Location: Annecy (France)
Contact:

Merging (and editing) .apt files

Post by Bre901 » Tue Oct 06, 2020 9:14 pm

Following a request from landscape developers who wanted to be able to merge .apt files and then do some cleanup, I have developed two small converters:

- apt2csv.exe: reads one (or more) .apt file(s) and writes the data to a .csv file which can then be edited in Excel or another spreadsheet program (it is easy to remove duplicates, sort by name and by latitude and/or longitude to easily select and remove areas).

- csv2apt.exe: reads a .csv file previously written (and possibly modified in Excel) and writes the data to an .apt file (runway direction is written using the new format).

They can be downloaded here: https://drive.google.com/file/d/1Jk5fqx ... sp=sharing

There is no documentation other than the above text.
CN: MPT — CondorUTill webpage: https://condorutill.fr/

User avatar
jmurtari
Posts: 47
Joined: Thu Jan 10, 2019 8:10 pm
Location: Lyons, NY
Contact:

Re: Merging (and editing) .apt files

Post by jmurtari » Tue Nov 17, 2020 7:44 pm

Sounds like a handy tool. I did download it and pretty easy to run.

Had one question on operation. I had an existing landscape where the airports were placed with Landscape Editor 2.0.1.

I read the .apt file and looked at the spread sheet data. I had a couple of airports that used a decimal part in the runway heading and it appears that was lost? It just converted it to a whole number?

I attached the original airport file.
apt.zip
You do not have the required permissions to view the files attached to this post.

User avatar
Bre901
Posts: 1790
Joined: Tue Nov 22, 2016 8:57 pm
Location: Annecy (France)
Contact:

Re: Merging (and editing) .apt files

Post by Bre901 » Tue Nov 17, 2020 8:33 pm

Just checked the source code

Sorry, stoopid me, the runway direction is correctly read (integer or 1/100 degree), but it is rounded to the nearest integer :oops: :oops: :oops:

Why did I do that ? :roll: :roll:

Writing the file .apt file is correct, though

Fix later tonight
CN: MPT — CondorUTill webpage: https://condorutill.fr/

User avatar
Bre901
Posts: 1790
Joined: Tue Nov 22, 2016 8:57 pm
Location: Annecy (France)
Contact:

Re: Merging (and editing) .apt files

Post by Bre901 » Tue Nov 17, 2020 9:46 pm

Fixed

Renewed apologies

Same download link
CN: MPT — CondorUTill webpage: https://condorutill.fr/

Post Reply