Skip to content

Commit

Permalink
Merge pull request #54 from VATGER-Nav/split-maps
Browse files Browse the repository at this point in the history
Split maps
  • Loading branch information
fsoest authored Jul 26, 2023
2 parents a813b1a + 902b209 commit 793bdef
Show file tree
Hide file tree
Showing 146 changed files with 150,241 additions and 27,988 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/maps-creator.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: maps-creator
run-name: Push by ${{ github.actor }} is building Maps
on:
push:
branches:
- '*'
permissions: write-all
jobs:
build-maps:
runs-on: ubuntu-latest
steps:
- name: checkout repo content
uses: actions/checkout@v2 # checkout the repository content

- name: setup python
uses: actions/setup-python@v4
with:
python-version: '3.11' # install the python version needed

- name: execute py script # run main.py
working-directory: .
run: python .github/workflows/mover.py

- name: commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add -A
git diff-index --quiet HEAD || (git commit -a -m "Build maps action" --allow-empty)
- name: push changes
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
146 changes: 146 additions & 0 deletions .github/workflows/mover.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
{"EDGG/Plugins/GRP/Phoenix/GRpluginMaps.txt":
[".github/workflows/source/grp_phoenix_maps/colors.txt",
".github/workflows/source/grp_phoenix_maps/sct-file-path.txt",
".github/workflows/source/grp_phoenix_maps/eddf/eddf.txt",
".github/workflows/source/grp_phoenix_maps/eddf/background.txt",
".github/workflows/source/grp_phoenix_maps/eddf/groundlayout.txt",
".github/workflows/source/grp_phoenix_maps/eddf/reduced-runway-separation.txt",
".github/workflows/source/grp_phoenix_maps/eddf/tora.txt",
".github/workflows/source/grp_phoenix_maps/eddf/runway-crossing.txt",
".github/workflows/source/grp_phoenix_maps/eddf/notam-closures.txt",
".github/workflows/source/grp_phoenix_maps/eddf/restriction-maps.txt",
".github/workflows/source/grp_phoenix_maps/eddf/aor-twr.txt",
".github/workflows/source/grp_phoenix_maps/eddf/aor-gnd-apn.txt",
".github/workflows/source/grp_phoenix_maps/eddf/permanent-closures.txt",
".github/workflows/source/grp_phoenix_maps/eddf/restrictions.txt",
".github/workflows/source/grp_phoenix_maps/eddf/app-window.txt",
".github/workflows/source/grp_phoenix_maps/eddf/eddf-pro.txt",
".github/workflows/source/grp_phoenix_maps/edfh/edfh.txt",
".github/workflows/source/grp_phoenix_maps/eddl/eddl.txt",
".github/workflows/source/grp_phoenix_maps/eddl/second-window.txt",
".github/workflows/source/grp_phoenix_maps/eddl/app-window.txt",
".github/workflows/source/grp_phoenix_maps/eddl/reduced-runway-separation.txt",
".github/workflows/source/grp_phoenix_maps/eddl/notam-closures.txt",
".github/workflows/source/grp_phoenix_maps/eddl/taxi-restrictions.txt",
".github/workflows/source/grp_phoenix_maps/eddl/permanent-closures.txt",
".github/workflows/source/grp_phoenix_maps/eddk/eddk.txt",
".github/workflows/source/grp_phoenix_maps/eddk/second-window.txt",
".github/workflows/source/grp_phoenix_maps/eddk/app-window.txt",
".github/workflows/source/grp_phoenix_maps/eddk/reduced-runway-separation.txt",
".github/workflows/source/grp_phoenix_maps/eddk/active-crossings-runways.txt",
".github/workflows/source/grp_phoenix_maps/eddk/notam-closures.txt",
".github/workflows/source/grp_phoenix_maps/eddk/restriction-map.txt",
".github/workflows/source/grp_phoenix_maps/eddk/permanent-closures.txt",
".github/workflows/source/grp_phoenix_maps/eddk/restrictions.txt",
".github/workflows/source/grp_phoenix_maps/edds/edds.txt",
".github/workflows/source/grp_phoenix_maps/edds/second-window.txt",
".github/workflows/source/grp_phoenix_maps/edds/app-window.txt",
".github/workflows/source/grp_phoenix_maps/edds/dfs-layout.txt",
".github/workflows/source/grp_phoenix_maps/edds/reduced-runway-separation.txt",
".github/workflows/source/grp_phoenix_maps/edds/tora.txt",
".github/workflows/source/grp_phoenix_maps/edds/restrictions.txt"
],

"EDGG/Plugins/Topsky_EDUU/TopSkyMaps.txt":
[".github/workflows/source/topsky_eduu_maps/definitions.txt",
".github/workflows/source/topsky_eduu_maps/upper-sectors.txt",
".github/workflows/source/topsky_eduu_maps/upper-lvl.txt",
".github/workflows/source/topsky_eduu_maps/heuse-area.txt",
".github/workflows/source/topsky_eduu_maps/langen-sectors.txt",
".github/workflows/source/topsky_eduu_maps/fixes-upper.txt",
".github/workflows/source/topsky_eduu_maps/edff-sep-guides.txt",
".github/workflows/source/topsky_eduu_maps/holding-enroute.txt",
".github/workflows/source/topsky_eduu_maps/holding-arrival.txt"
],

"EDGG/Plugins/Topsky_EDGG/TopSkyMaps.txt":
[".github/workflows/source/topsky_edgg_maps/colors.txt",
".github/workflows/source/topsky_edgg_maps/symbols.txt",
".github/workflows/source/topsky_edgg_maps/langen-radar/langen-radar.txt",
".github/workflows/source/topsky_edgg_maps/langen-radar/edff-fixes.txt",
".github/workflows/source/topsky_edgg_maps/langen-radar/edff-tma-points.txt",
".github/workflows/source/topsky_edgg_maps/langen-radar/langen-navaids.txt",
".github/workflows/source/topsky_edgg_maps/langen-radar/edll-fixes.txt",
".github/workflows/source/topsky_edgg_maps/langen-radar/sulz-area.txt",
".github/workflows/source/topsky_edgg_maps/langen-radar/heuse-area.txt",
".github/workflows/source/topsky_edgg_maps/langen-radar/edll-airports.txt",
".github/workflows/source/topsky_edgg_maps/langen-radar/minor-rwy.txt",
".github/workflows/source/topsky_edgg_maps/langen-radar/edff-fixes-labels.txt",
".github/workflows/source/topsky_edgg_maps/langen-radar/langen-navaids-labels.txt",
".github/workflows/source/topsky_edgg_maps/langen-radar/edff-tma-points-labels.txt",
".github/workflows/source/topsky_edgg_maps/langen-radar/edll-airways.txt",
".github/workflows/source/topsky_edgg_maps/langen-radar/edff-airways.txt",
".github/workflows/source/topsky_edgg_maps/langen-radar/sep-guides.txt",
".github/workflows/source/topsky_edgg_maps/sector/sector.txt",
".github/workflows/source/topsky_edgg_maps/sector/german-france-border.txt",
".github/workflows/source/topsky_edgg_maps/sector/langen-sectors.txt",
".github/workflows/source/topsky_edgg_maps/sector/langen-neighbours.txt",
".github/workflows/source/topsky_edgg_maps/sector/edds-sectors.txt",
".github/workflows/source/topsky_edgg_maps/sector/bottrop-sector.txt",
".github/workflows/source/topsky_edgg_maps/sector/noervenich-sector.txt",
".github/workflows/source/topsky_edgg_maps/sector/eddf-aor.txt",
".github/workflows/source/topsky_edgg_maps/sector/eddf-twr-ctr.txt",
".github/workflows/source/topsky_edgg_maps/sector/edds-twr-ctr.txt",
".github/workflows/source/topsky_edgg_maps/sector/edll-twr-ctr.txt",
".github/workflows/source/topsky_edgg_maps/sector/upper-borders.txt",
".github/workflows/source/topsky_edgg_maps/sector/all-twr-ctr.txt",
".github/workflows/source/topsky_edgg_maps/sector/d-ctr-hx.txt",
".github/workflows/source/topsky_edgg_maps/minor-airports/minor-airports.txt",
".github/workflows/source/topsky_edgg_maps/minor-airports/eddr.txt",
".github/workflows/source/topsky_edgg_maps/minor-airports/edfh.txt",
".github/workflows/source/topsky_edgg_maps/minor-airports/edfm.txt",
".github/workflows/source/topsky_edgg_maps/minor-airports/edfq.txt",
".github/workflows/source/topsky_edgg_maps/minor-airports/edgs.txt",
".github/workflows/source/topsky_edgg_maps/minor-airports/edsb.txt",
".github/workflows/source/topsky_edgg_maps/minor-airports/edtl.txt",
".github/workflows/source/topsky_edgg_maps/minor-airports/edty.txt",
".github/workflows/source/topsky_edgg_maps/military-airports/military-airports.txt",
".github/workflows/source/topsky_edgg_maps/military-airports/etar.txt",
".github/workflows/source/topsky_edgg_maps/military-airports/etad.txt",
".github/workflows/source/topsky_edgg_maps/eddf/eddf.txt",
".github/workflows/source/topsky_edgg_maps/edds/edds.txt",
".github/workflows/source/topsky_edgg_maps/eddl/eddl.txt",
".github/workflows/source/topsky_edgg_maps/eddg/eddg.txt",
".github/workflows/source/topsky_edgg_maps/eddk/eddk.txt",
".github/workflows/source/topsky_edgg_maps/edlp/edlp.txt",
".github/workflows/source/topsky_edgg_maps/edlv/edlv.txt",
".github/workflows/source/topsky_edgg_maps/edlw/edlw.txt",
".github/workflows/source/topsky_edgg_maps/airspace-c-d.txt",
".github/workflows/source/topsky_edgg_maps/mva.txt",
".github/workflows/source/topsky_edgg_maps/holdings.txt",
".github/workflows/source/topsky_edgg_maps/training.txt",
".github/workflows/source/topsky_edgg_maps/extended-centerline.txt",
".github/workflows/source/topsky_edgg_maps/fis.txt"],

"EDGG/Plugins/Topsky_Phoenix/TopSkyMaps.txt":
[".github/workflows/source/topsky_phoenix_maps/symbol-def.txt",
".github/workflows/source/topsky_phoenix_maps/colors.txt",
".github/workflows/source/topsky_phoenix_maps/override-sct.txt",
".github/workflows/source/topsky_phoenix_maps/phoenix/phoenix.txt",
".github/workflows/source/topsky_phoenix_maps/phoenix/vfr-points.txt",
".github/workflows/source/topsky_phoenix_maps/phoenix/vfr-hospital.txt",
".github/workflows/source/topsky_phoenix_maps/phoenix/airports.txt",
".github/workflows/source/topsky_phoenix_maps/phoenix/runways.txt",
".github/workflows/source/topsky_phoenix_maps/phoenix/edff-aor.txt",
".github/workflows/source/topsky_phoenix_maps/phoenix/ctr.txt",
".github/workflows/source/topsky_phoenix_maps/phoenix/aspc.txt",
".github/workflows/source/topsky_phoenix_maps/phoenix/aspd.txt",
".github/workflows/source/topsky_phoenix_maps/phoenix/tmz-rmz.txt",
".github/workflows/source/topsky_phoenix_maps/stands/stands.txt",
".github/workflows/source/topsky_phoenix_maps/eddf/eddf.txt",
".github/workflows/source/topsky_phoenix_maps/eddf/ntz.txt",
".github/workflows/source/topsky_phoenix_maps/eddf/rnp-y.txt",
".github/workflows/source/topsky_phoenix_maps/eddf/sid.txt",
".github/workflows/source/topsky_phoenix_maps/eddf/dep-freq.txt",
".github/workflows/source/topsky_phoenix_maps/eddf/distance-indicator.txt",
".github/workflows/source/topsky_phoenix_maps/eddf/extended-centerlines.txt",
".github/workflows/source/topsky_phoenix_maps/eddl/eddl.txt",
".github/workflows/source/topsky_phoenix_maps/eddl/bridges.txt",
".github/workflows/source/topsky_phoenix_maps/eddk/eddk.txt",
".github/workflows/source/topsky_phoenix_maps/eddk/extended-centerlines.txt",
".github/workflows/source/topsky_phoenix_maps/minor-airports.txt",
".github/workflows/source/topsky_phoenix_maps/general.txt",
".github/workflows/source/topsky_phoenix_maps/mva.txt",
".github/workflows/source/topsky_phoenix_maps/topografie/topografie.txt",
".github/workflows/source/topsky_phoenix_maps/topografie/highway.txt",
".github/workflows/source/topsky_phoenix_maps/topografie/rivers.txt"]}
15 changes: 15 additions & 0 deletions .github/workflows/mover.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import json

with open('.github/workflows/mover.json', 'r') as file:
data = json.load(file)
print(data)

for output, inputs in data.items():
with open(output, 'w') as file:
lines = []
for inp in inputs:
with open(inp, 'r') as inp_file:
lines += inp_file.readlines()
lines += '\n'
lines += '\n'
file.writelines(lines)
18 changes: 18 additions & 0 deletions .github/workflows/source/grp_phoenix_maps/colors.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// ******************* C O L O R *******************
COLORDEF:blue:0:196:255
COLORDEF:red:162:0:0
COLORDEF:darkred:200:0:0
COLORDEF:yellow:249:224:0
COLORDEF:cgnyellow:255:242:119
COLORDEF:green:14:166:0
COLORDEF:magenta:166:0:61
COLORDEF:black:0:0:0
COLORDEF:greyblue:143:197:199
COLORDEF:white:255:255:255
COLORDEF:grey:80:80:80
COLORDEF:apronorange:249:153:106
COLORDEF:dfsorange:248:172:58
COLORDEF:dfsgrey:134:134:135
COLORDEF:orange:176:88:21
COLORDEF:darkblue:5:21:181
COLORDEF:lightblue:0:230:255
Loading

0 comments on commit 793bdef

Please sign in to comment.