{"id":50766325,"url":"https://github.com/CarlosBergillos/xplane_apt_convert","last_synced_at":"2026-06-28T18:00:34.547Z","repository":{"id":49648127,"uuid":"514968904","full_name":"CarlosBergillos/xplane_apt_convert","owner":"CarlosBergillos","description":"Convert X-Plane airport data to GIS-friendly formats like GeoJSON or ESRI Shapefile.","archived":false,"fork":false,"pushed_at":"2026-05-17T16:16:18.000Z","size":1740,"stargazers_count":24,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-06-25T04:05:12.346Z","etag":null,"topics":["airport","airports","fiona","flatgeobuf","geobuf","geojson","geopackage","gis","gpkg","ogr","shapefile","xplane"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CarlosBergillos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-07-17T22:25:02.000Z","updated_at":"2026-05-17T16:16:21.000Z","dependencies_parsed_at":"2023-02-08T07:45:52.100Z","dependency_job_id":null,"html_url":"https://github.com/CarlosBergillos/xplane_apt_convert","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CarlosBergillos/xplane_apt_convert","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarlosBergillos%2Fxplane_apt_convert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarlosBergillos%2Fxplane_apt_convert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarlosBergillos%2Fxplane_apt_convert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarlosBergillos%2Fxplane_apt_convert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CarlosBergillos","download_url":"https://codeload.github.com/CarlosBergillos/xplane_apt_convert/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarlosBergillos%2Fxplane_apt_convert/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34898568,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-28T02:00:05.809Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["airport","airports","fiona","flatgeobuf","geobuf","geojson","geopackage","gis","gpkg","ogr","shapefile","xplane"],"created_at":"2026-06-11T14:01:24.521Z","updated_at":"2026-06-28T18:00:34.542Z","avatar_url":"https://github.com/CarlosBergillos.png","language":"Python","funding_links":[],"categories":["Mapping and Related"],"sub_categories":["Python Language Plugin and Scripts"],"readme":"# X-Plane apt.dat convert\n\n\u003ca href=\"https://pypi.org/project/xplane-apt-convert/\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/pypi/v/xplane_apt_convert.svg\" alt=\"Package version\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://pypi.org/project/xplane-apt-convert/\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/pypi/pyversions/xplane_apt_convert.svg\" alt=\"Supported Python versions\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://pypi.org/project/xplane-apt-convert/\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/pypi/wheel/xplane_apt_convert.svg\" alt=\"Wheel support\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://pypi.org/project/xplane-apt-convert/\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/pypi/l/xplane_apt_convert.svg\" alt=\"License\"\u003e\n\u003c/a\u003e\n\n`xplane_apt_convert` is a Python package and CLI application allowing to convert X-Plane airport data to GIS-friendly formats like GeoJSON or ESRI Shapefile.\n\n[![Example LELL airport layout](https://raw.githubusercontent.com/CarlosBergillos/xplane_apt_convert/main/images/example_LEBL.png)](https://raw.githubusercontent.com/CarlosBergillos/xplane_apt_convert/main/images/example_LEBL.png)\n\n\n## Input\n\nX-Plane `apt.dat` files are used as input.\nTwo input modes exist:\n\n- Load a local `apt.dat` file.\n- Automatically download airport-specific files from the [X-Plane Scenery Gateway](https://gateway.x-plane.com/).\n\n**Note:** Only tested with `apt.dat` files version 1100.\n\n\n## Output\n\nThe following output formats are supported:\n\n| Format                     | Extension   |\n| :------------------------- | :---------- |\n| ESRI Shapefile             | `.shp`      |\n| FlatGeobuf                 | `.fgb`      |\n| GeoJSON                    | `.geojson`  |\n| GeoJSON lines (GeoJSONSeq) | `.geojsonl` |\n| GeoPackage (GPKG)          | `.gpkg`     |\n| GML                        | `.gml`      |\n| OGR_GMT                    | `.gmt`      |\n| SQLite                     | `.sqlite`   |\n\n\n## Supported Features\n\nThe following airport features are supported:\n\n- **Windsocks** (row code `19`)\n- **Ground signs** (row code `20`)\n- **Runways** (row code `100`)\n- **Pavement areas (taxiway and aprons)** (header row code `110`)\n- **Ground markings (linear features)** (header row code `120`)\n- **Airport boundary** (header row code `130`)\n- **Aircraft startup locations (parking and gates)** (row code `1300`)\n- **Airport metadata** (row code `1302`)\n\n\n## Installation\n\nThe `xplane_apt_convert` Python package can be installed using pip:\n\n```console\npip install xplane_apt_convert\n```\n\n**Python 3.10 and above**\n\nWhen using Python 3.10 and above, you might encounter the following error during the installation of the `bezier` dependency:\n`The BEZIER_INSTALL_PREFIX environment variable must be set.`\n\nTo solve it, you can install the pure Python version of the `bezier` package by running:\n\n```console\nBEZIER_NO_EXTENSION=true pip install bezier --no-binary=bezier\n```\n\nAnd then try installing `xplane_apt_convert` again.\n\nSee [dhermes/bezier/issues/283](https://github.com/dhermes/bezier/issues/283) for more details about this issue.\n\n\n## CLI Basic Usage\n\nConvert an airport in a local `apt.dat` file to GeoJSON:\n\n```console\npython -m xplane_apt_convert -a LEBL -i ./apt.dat -o ./out/ -d GeoJSON\n```\n\n\nConvert multiple airports:\n\n```console\npython -m xplane_apt_convert -a LEBL,LEGE,LERS,LELL -i ./apt.dat -o ./out/ -d GeoJSON\n```\n\n\nDownload the recommended airport data files from the X-Plane Scenery Gateway and convert them:\n\n```console\npython -m xplane_apt_convert -a LEBL,LEGE,LERS,LELL -g -o ./out/ -d GeoJSON\n```\n\nOther output file formats are available using the `-d` option, for example `GeoJSON`, `ESRI Shapefile`, or `GPKG`.\n\nFor information about all available options run the command using `--help`.\n\n[![CLI help](https://raw.githubusercontent.com/CarlosBergillos/xplane_apt_convert/main/images/cli_help.svg)](https://raw.githubusercontent.com/CarlosBergillos/xplane_apt_convert/main/images/cli_help.svg)\n\n\n## Python Basic Usage\n\nConvert an airport in a local `apt.dat` file to GeoJSON:\n\n```python\nfrom xplane_airports.AptDat import AptDat\nfrom xplane_apt_convert import ParsedAirport\n\ninput_file = \"./apt.dat\"\nairport_id = \"LEBL\"\n\nwith open(input_file, \"r\") as f:\n    apt_dat = AptDat.from_file_text(f.read(), input_file)\n\napt = apt_dat.search_by_id(airport_id)\n\np_apt = ParsedAirport(apt)\np_apt.export(\"./airport.geojson\")\n```\n\n\nDownload an airport from the X-Plane Scenery Gateway and convert it to ESRI Shapefile:\n\n```python\nfrom xplane_airports.gateway import scenery_pack\nfrom xplane_apt_convert import ParsedAirport\n\nairport_id = \"LEBL\"\n\nrecommended_pack = scenery_pack(airport_id)\napt = recommended_pack.apt\n\np_apt = ParsedAirport(apt)\np_apt.export(\"./airport.shp\", driver=\"ESRI Shapefile\")\n```\n\nSee the function's docstring for more information on all the allowed arguments.\n\n\n## License\n\nThis software is licensed under the terms of the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCarlosBergillos%2Fxplane_apt_convert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FCarlosBergillos%2Fxplane_apt_convert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCarlosBergillos%2Fxplane_apt_convert/lists"}