Skip to content

Commit

Permalink
ese 순서 TMA 후에 FIR 표시하도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
lancard committed Oct 6, 2024
1 parent f34f471 commit a848342
Show file tree
Hide file tree
Showing 2 changed files with 1,502 additions and 1,050 deletions.
18 changes: 9 additions & 9 deletions ese.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,15 +113,6 @@ module.exports = {
getAirspace() {
var tracon = {};

// get fir
var geojson = require('./temp/boundaries.json');

geojson.features.forEach(e => {
if (e.properties.id.startsWith("RK")) {
tracon[e.properties.id.split("-").join("_")] = e.geometry.coordinates[0][0];
}
});

// get tracon
fs.readdirSync('./database/airspace').forEach(e => {
var fileInfo = path.parse(e);
Expand All @@ -137,6 +128,15 @@ module.exports = {
tracon[airportName] = t;
});

// get fir
var geojson = require('./temp/boundaries.json');

geojson.features.forEach(e => {
if (e.properties.id.startsWith("RK")) {
tracon[e.properties.id.split("-").join("_")] = e.geometry.coordinates[0][0];
}
});

// -------------------------------------
var ret = [];
var additionalRet = [];
Expand Down
Loading

0 comments on commit a848342

Please sign in to comment.