From 9f34a0c036894cfd113c02b02211f4cd3d546bca Mon Sep 17 00:00:00 2001 From: Peter Sadrozinski Date: Sun, 16 Dec 2012 12:54:44 -0500 Subject: [PATCH] - fix airport area texturing - fix ocean texturing for tiles with a coastline --- src/Airports/GenAirports850/airport.cxx | 3 +++ src/BuildTiles/Main/tgconstruct_clip.cxx | 1 + src/BuildTiles/Main/tgconstruct_elevation.cxx | 2 -- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Airports/GenAirports850/airport.cxx b/src/Airports/GenAirports850/airport.cxx index 6b9099a4..6eb43b79 100644 --- a/src/Airports/GenAirports850/airport.cxx +++ b/src/Airports/GenAirports850/airport.cxx @@ -1225,7 +1225,10 @@ void Airport::BuildBtg(const std::string& root, const string_list& elev_src ) std::string holepath = root + "/AirportArea"; tgChopper chopper( holepath ); + divided_base.SetPreserve3D( true ); + apt_clearing.SetPreserve3D( false ); + apt_clearing.SetTexMethod( TG_TEX_BY_GEODE ); chopper.Add( divided_base, "Hole" ); chopper.Add( apt_clearing, "Airport" ); diff --git a/src/BuildTiles/Main/tgconstruct_clip.cxx b/src/BuildTiles/Main/tgconstruct_clip.cxx index 578e48de..6ceeff2b 100644 --- a/src/BuildTiles/Main/tgconstruct_clip.cxx +++ b/src/BuildTiles/Main/tgconstruct_clip.cxx @@ -232,6 +232,7 @@ bool TGConstruct::ClipLandclassPolys( void ) { if ( remains.Contours() > 0 ) { remains.SetMaterial( get_area_name(get_sliver_target_area_type()) ); + remains.SetTexMethod( TG_TEX_BY_GEODE, bucket.get_center_lat() ); polys_clipped.add_poly( (int)get_sliver_target_area_type(), remains ); } } diff --git a/src/BuildTiles/Main/tgconstruct_elevation.cxx b/src/BuildTiles/Main/tgconstruct_elevation.cxx index 52b10530..ba62c555 100644 --- a/src/BuildTiles/Main/tgconstruct_elevation.cxx +++ b/src/BuildTiles/Main/tgconstruct_elevation.cxx @@ -81,8 +81,6 @@ void TGConstruct::CalcElevations( void ) } } - return; - nodes.get_geod_nodes(raw_nodes); // now flatten some stuff