I read the FSX facilities by SimConnect "SimConnect_RequestFacilitesList". In order to get further details about the airports in range, somebody told me to read the corresponding .bgl file.
Using tools like BGL2XML or BglAnalyzeX show me indeed, all the required information is there. 
But how would I find the corresponding .bgl file? When I search on my FSX directory (e.g. for EDDF), I do find some files in FlightSimulatorX\Aerosoft\AFD\Scenery. However, not everybody has this directory, because it is based on Aerosoft sceneries. So how would I find the original .bgl file containing this information (based on ICAO code EDDF)?
BTW, is there a (public available) C++ library for reading .bgl files (basically .bgl 2 some kind of in memory object). The above tools are nice, but it would be quite an overhead to convert all data to XML first and parse it back.
-- FINDINGS --
Using tools like BGL2XML or BglAnalyzeX show me indeed, all the required information is there. 
But how would I find the corresponding .bgl file? When I search on my FSX directory (e.g. for EDDF), I do find some files in FlightSimulatorX\Aerosoft\AFD\Scenery. However, not everybody has this directory, because it is based on Aerosoft sceneries. So how would I find the original .bgl file containing this information (based on ICAO code EDDF)?
BTW, is there a (public available) C++ library for reading .bgl files (basically .bgl 2 some kind of in memory object). The above tools are nice, but it would be quite an overhead to convert all data to XML first and parse it back.
-- FINDINGS --
- Scenery.cfg somehow gives me the locations of all bgl files
- The directory "SceneryIndexes" contains files I am unable to interpret
- Directory "Facilities" with idx, unfortunately in binary files (no idea how to parse)
- Tools like FSC obviously create their own database from bgl files, but I'd prefer to read them on the fly (if feasible)
Last edited:

