This commit is contained in:
Keith Paterson 2021-05-28 12:58:54 +02:00
parent ed25672448
commit d8417c7fd9

View File

@ -215,7 +215,7 @@ exports.writeGroundnetXML = function (fDir, icao, featureList) {
}
});
var gap = gapEnd - gapStart -1;
if ( gap >= 0 ) {
parkings = parkings.map(n => {
if (n['@index']>gapStart) {
n['@index'] = String(n['@index'] - gap);
@ -240,6 +240,8 @@ exports.writeGroundnetXML = function (fDir, icao, featureList) {
}
return n;
});
}
} while( gapStart > 0 && gapEnd > 0);
var xmlObj = { groundnet: { version: 1, fgaversion: version, name: name,