
X plane scenery gateway generator#
from_file ( os.PathLike): Path to the file from which this was readĪ generator containing the X-Plane IDs of all airports in the collection.apt_dat_file_text ( str): The contents of an apt.dat (or ICAO.dat) file.Static method from_file_text( apt_dat_file_text, from_file) -> AptDat xplane_version (int): The version of the apt.dat spec used by the airports in this collection.Parses X-Plane’s gigantic apt.dat files, which may have data on tens of thousands of airports. AptDat.AptDatĪ container class for Airport objects. Tools for reading, inspecting, and manipulating X-Plane’s airport (apt.dat) files.
X plane scenery gateway code#
More sample code is available in the doctests in the gateway module docs below.

""":type ksea_recommended_pack: GatewayApt""" print( "KSEA downloaded from the Gateway begins:") gateway import scenery_pack, GatewayApt ksea_recommended_pack = scenery_pack( 'KSEA') Sample code Parsing the default apt.dat file in your local X-Plane installationįrom xplane_airports. If you're migrating from a pre-4.0 version of the library, see the Migration notes section below. Xplane_airports requires Python 3.6 or newer.
X plane scenery gateway download#


airports(): Queries for metadata on all 35,000+ airports on the Gateway.The gateway module: Used to interact with the X-Plane Scenery Gateway to get information about what airports are available, and to download individual scenery packs contributed by the community.The Airport class: Represents an individual airport from an apt.dat file.The AptDat class itself: A parser for X-Plane's airport data files (which may contain more than 35,000 airports) a collection of Airport objects.The AptDat module: Used to parse & query raw apt.dat files (e.g., the files stored on disk in your X-Plane installation).This includes the following major components: Xplane_airports is a Python package for interacting with X-Plane's airport data ( apt.dat) files. Tools for working with X-Plane airport data
