entstar.blogg.se

X plane scenery gateway
X plane scenery gateway













  1. X plane scenery gateway generator#
  2. X plane scenery gateway code#
  3. X plane scenery gateway download#

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.

x plane scenery gateway

""":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.

  • Publishing package updates to PyPI (for maintainers).
  • (#xplane_airportsgatewayscenery_packpack_to_download-gatewayapt).
  • ](#xplane_airportsgatewayrecommended_scenery_packsselective_apt_idsnone-collectionsiterablegatewayapt).
  • Downloaded the recommended scenery pack for an airport from the Gateway.
  • Getting metadata on airports from the Gateway.
  • Parsing the default apt.dat file in your local X-Plane installation.
  • X plane scenery gateway download#

  • recommended_scenery_packs(): A generator equivalent to calling scenery_pack() to download the recommended scenery pack for every airport (or only a preselected list of airports, at your discretion).
  • Includes both the apt.dat data and DSF, where applicable.
  • scenery_pack(): Downloads either the recommended pack for the specified airport, or the scenery pack with the specified int ID.
  • Unlike scenery_pack(), though, this does not include actual apt.dat or DSF data.
  • airport(): Queries the Gateway for information about the specified airport itself, as well as metadata on all scenery packs submitted for it.
  • x plane scenery gateway x plane scenery gateway

    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















    X plane scenery gateway