Howto:Add procedures to the route manager: Difference between revisions
Line 49: | Line 49: | ||
|script_version = 0.40 | |script_version = 0.40 | ||
}}</ref> | }}</ref> | ||
== Bash script == | |||
ZirconiumX wrote a bash script for putting the XML files into the FG required locations.<ref>{{cite web | |||
|url = https://forum.flightgear.org/viewtopic.php?p=280561#p280561 | |||
|title = <nowiki> Re: Non-Navigraph SID/STAR xml files </nowiki> | |||
|author = <nowiki> ZirconiumX </nowiki> | |||
|date = Mar 26th, 2016 | |||
|added = Mar 26th, 2016 | |||
|script_version = 0.40 | |||
}}</ref> | |||
<syntaxhighlight lang="bash"> | |||
for file in $(ls *.xml) | |||
do | |||
# First, rename all the files to the correct convention | |||
mv "$file" "${file%.xml}.procedures.xml" | |||
# Then move it to the correct place | |||
icao=${file%.xml} | |||
icao1=$(echo $icao | cut -c 1) | |||
icao2=$(echo $icao | cut -c 2) | |||
icao3=$(echo $icao | cut -c 3) | |||
mkdir -p $icao1/$icao2/$icao3 | |||
mv "${icao}.procedures.xml" "$icao1/$icao2/$icao3/${icao}.procedures.xml" | |||
done | |||
</syntaxhighlight> | |||
== References == | == References == | ||
{{Appendix}} | {{Appendix}} |
Revision as of 15:32, 6 August 2017
This article is a stub. You can help the wiki by expanding it. |
Background
Make some yourself. Charts are easy to find and a quick search will find you the syntax. This is what FlightGear is all about; doing it yourself and sharing it to others. A quick search would also find existing packages...[1]
Objective
a free way to get mor e SID STAR for the routeplanner in fg[2]
Instructions
Something like
<scenery directory>/Airports/I/C/A/ICAO.procedures.xml
Where ICAO is your airport code.[3]
for example if you want to import a sid/star file for VTSP, you name the file VTSP.procedures.xml and put it in <scenery directory>/V/T/S/ . In there you will likely find VTSP.twr.xml but not an existing *. procedures.xml file.
Substitute VTSP for your airport code.[4]
Bash script
ZirconiumX wrote a bash script for putting the XML files into the FG required locations.[5]
for file in $(ls *.xml)
do
# First, rename all the files to the correct convention
mv "$file" "${file%.xml}.procedures.xml"
# Then move it to the correct place
icao=${file%.xml}
icao1=$(echo $icao | cut -c 1)
icao2=$(echo $icao | cut -c 2)
icao3=$(echo $icao | cut -c 3)
mkdir -p $icao1/$icao2/$icao3
mv "${icao}.procedures.xml" "$icao1/$icao2/$icao3/${icao}.procedures.xml"
done
References
References
|