The following example shows the BGL file format of facilities entities.
;DATABASE HEADER ********************************************************
dw0001;00 world set number (not saved to file list)
;0=off 1=fs5 default world
dd000490000h;02 N bound meter units
dd0003f0000h;06 S bound
dd0cf000000h;10 E bound 32-bit pseudodegrees
dd0bf000000h;14 W bound
ddVOR_DATA;18 VOR_DATA
dw50;22 lowest vor freq (channel 0–199)
dw50;24 highest vor freq (108.00–117.95)
ddSYNTH_SEEDS_08;26 seeds level 8
dd0;SYNTH_SEEDS_09;30 seeds level 9
dd0;SYNTH_SEEDS_10;34 seeds level 10
dd0;SYNTH_SEEDS_11;38 seeds level 11
dd0;SYNTH_SEEDS_12;42 seeds level 12
dd0;SYNTH_SEEDS_13;46 seeds level 13
dd0;SYNTH_SEEDS_14;50 seeds level 14
dd0;54 seeds level 15
ddOBJECT_DATA;58 OBJECT_DATA
dd0;62 LIBRARY_DATA
ddFACILITIES_DATA;66 FACILITIES_DATA
dd0;70 ANCHOR POINT DATA
FACILITIES_DATA:
rel_base= FACILITIES_DATA
COUNTRY'USA - Illinois',ill_STATEs
COUNTRY 'USA - California',cal_STATEs
EOL
;The two entries for Meigs that are commented out have runway altitude MSL
;(1/256 meters)!. The two commented in have altitude AGL (1/256 meters)
ill_STATEs:
;"Airport - Runway Name",Latitude ,Longitude ,Alt. ,Head,COM1 ,NAV1 ,OBS,NAV2 ,OBS
STATE"Chicago, Meigs Runway 36",237c2500h,0c1b40ae3h,46080,00000,2130h,1420h,355,1390h,121
STATE"Synthberg, Rural Rt. 11",20aff580h,0c1873b92h,46080,00000,2130h,1420h,355,1390h,121
EOL
cal_STATEs:
STATE"Santa Monica, Santa Monica 27L",52232,123754,23432,0,2485h,1000h,0,1100,0
EOL
The following example shows opcode definitions for a facilities entity.
;FACILITIES LOCATOR DATA *************************************************
;OBJECT ENTITY OPCODE DEFINITIONS -
;OpFormatDefinition
;-----------------------------------------------------------------
;1db 1COUNTRY
;(see macro below)
;3db 3STATE
;(see macro below)
COUNTRYmacroname_ascii,pointer
localopcode,endop
opcode:db01;;opcode
dwendop-opcode;;entity size
ddpointer-rel_base;;pointer to state info
dbname_ascii,0
endop:
endm
STATEmacroname_ascii,lat,lon,alt,heading,com1,nav1,obi1,nav2,obi2
localopcode,endop
opcode:db03;;opcode
dwendop-opcode;;entity size
ddlat;;latitude1/128 meter
ddlon;;longitude32-bit pseudodegrees
ddalt;;alt msl1/256 meter
dwheading;;heading16-bit pseudodegrees
dwcom1;;com1 freq4-digit packed bcd
dwnav1;;nav1 freq4-digit packed bcd
dwobi1;;angledegrees
dwnav2;;nav2 freq4-digit packed bcd
dwobi2;;angledegrees
dbname_ascii,0;;state nameasciiz
endop:
endm