Writing start node 0

This commit is contained in:
portree_kid 2020-03-08 21:20:55 +01:00
parent 06f630afab
commit 5f60c46dc9

View File

@ -48,7 +48,7 @@ exports.writeGroundnetXML = function (fDir, icao, featureList) {
arcElement._latlngs.forEach( latlng => { arcElement._latlngs.forEach( latlng => {
if (latlng.__vertex !== undefined && latlng.__vertex.glueindex !== undefined) { if (latlng.__vertex !== undefined && latlng.__vertex.glueindex !== undefined) {
nodes[latlng.__vertex.glueindex] = mapVertexNode(latlng); nodes[latlng.__vertex.glueindex] = mapVertexNode(latlng);
if (startIndex > 0) { if (startIndex >= 0) {
if (featureLookup[startIndex] == undefined) { if (featureLookup[startIndex] == undefined) {
featureLookup[startIndex] = []; featureLookup[startIndex] = [];
} }