This quick project exists to convert a specifically formatted KML file containing pair's of coordinates into a CSV file where they are displayed in Degrees, DegreesMinutes, and DegreesMinutesSeconds.
- Open command prompt or powershell and navigate to the folder the script/executable is stored in
- Call the script where the first argument is the
inputFile
and the optional second argument is theoutputFile
- As script:
python parser.py [inputFile] [outputFile]
- As executable:
parser.py [inputFile] [outputFile]
- If the
outputFile
argument is not specified it will default to using the original path and filename while appending.csv
to the end
- As script:
- After a few seconds the output file should appear where directed while also displaying to the screen
Only needed if developing the script
- Using pyinstaller run
pyinstaller --onefile parser.py
- This seems to accurately convert coordinates for the given formats, but you should absolutely check that yourself before relying on this
- If you want to have different formats in the output, you will have to modify the source code yourself
- Because Excel gets weird with the UTF-8 encoding when you open a CSV, I've removed some characters that caused issues but this may affect readability