1
0
Fork 0

Fix missing v1300 surface codes for rwy and twy

Signed-off-by: fly <merspieler@alwaysdata.com>
This commit is contained in:
fly 2023-12-23 03:32:05 +01:00
parent 9d9c6033c2
commit 155a5d240f
2 changed files with 33 additions and 6 deletions

View file

@ -135,9 +135,9 @@ tgContour WaterRunway::GetBuoys()
int Runway::BuildBtg(tgpolygon_list& rwy_polys, tglightcontour_list& rwy_lights, tgcontour_list& slivers, tgAccumulator& accum, std::string& shapefile_name)
{
if (rwy.surface == 1 /* Asphalt */) {
if (rwy.surface == 1 || (rwy.surface >= 20 && rwy.surface <= 38)/* Asphalt */) {
material_prefix = "pa_";
} else if (rwy.surface == 2 /* Concrete */) {
} else if (rwy.surface == 2 || (rwy.surface >= 50 && rwy.surface <= 57) /* Concrete */) {
material_prefix = "pc_";
} else if (rwy.surface == 3 /* Turf/Grass */) {
material_prefix = "grass_rwy";
@ -160,6 +160,33 @@ int Runway::BuildBtg(tgpolygon_list& rwy_polys, tglightcontour_list& rwy_lights,
switch (rwy.surface) {
case 1: // asphalt:
case 2: // concrete
case 20: // Light colored asphalt
case 21:
case 22:
case 23:
case 24: // Asphalt
case 25:
case 26:
case 27: // Darker colored asphalt
case 28:
case 29:
case 30:
case 31: // Very dark colored asphalt
case 32:
case 33:
case 34:
case 35: // Near black, new looking asphalt
case 36:
case 37:
case 38:
case 50: // Light “new” looking concrete
case 51:
case 52:
case 53: // Concrete
case 54:
case 55: // Dark concrete
case 56:
case 57:
TG_LOG(SG_GENERAL, SG_DEBUG, "Build Runway: asphalt or concrete " << rwy.surface);
gen_rwy(rwy_polys, slivers, accum, shapefile_name);
gen_runway_lights(rwy_lights);

View file

@ -103,7 +103,7 @@ int Taxiway::BuildBtg(tgpolygon_list& rwy_polys, tglightcontour_list& rwy_lights
std::string material;
if (surface == 1 /* Asphalt */) {
if (surface == 1 || (surface >= 20 && surface <= 38)/* Asphalt */) {
if ((width <= 50) && (lighting[1] == '6')) {
material = "pa_taxiway"s;
GenLights(rwy_lights);
@ -111,7 +111,7 @@ int Taxiway::BuildBtg(tgpolygon_list& rwy_polys, tglightcontour_list& rwy_lights
material = "pa_tiedown"s;
}
} else if (surface == 2 /* Concrete */) {
} else if (surface == 2 || (surface >= 50 && surface <= 57)/* Concrete */) {
if ((width <= 50) && (lighting[1] == '6')) {
material = "pc_taxiway"s;
GenLights(rwy_lights);