• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

.PLN files are annoying, so I wrote a script to make them easier

hankhank10

Resource contributor
Messages
12
Country
unitedkingdom
As you know, MSFS 2020 uses .PLN files to plan routes. They’re pretty annoying because:
  1. They use XML. Is this 1999?
  2. They display latitude and longitude in a format which is pretty difficult to do anything with.

I wrote a simple script in Python to do a few things:
  1. Read an PLN file into a Python dictionary so you can do something with it.
  2. Read the latitudes and longitudes in the annoying PLN format and convert them to decimal lat/lons which you can, for instance, plot on a map.
  3. Outputs this all to a lovely usable JSON.

It also includes an example.py to show how it works and a sample.pln file which you can use to test.

This is open source and comes with a GNU public licence. Hope you find it useful.

 
Back
Top