From bf960335168b11c0fe8bd8aa06fc96d76020f3aa Mon Sep 17 00:00:00 2001 From: curt Date: Mon, 10 Mar 2003 03:00:59 +0000 Subject: [PATCH] Tweaking parameters. --- src/Airports/GenAirports/apt_surface.cxx | 6 +++--- src/Airports/GenAirports/build.cxx | 8 ++++++++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/Airports/GenAirports/apt_surface.cxx b/src/Airports/GenAirports/apt_surface.cxx index 625454a5..9e8ae5ef 100644 --- a/src/Airports/GenAirports/apt_surface.cxx +++ b/src/Airports/GenAirports/apt_surface.cxx @@ -150,15 +150,15 @@ TGAptSurface::TGAptSurface( const string& path, cout << "Area size = " << x_m << " x " << y_m << " (m)" << endl; - int xdivs = (int)(x_m / 800.0) + 1; - int ydivs = (int)(y_m / 800.0) + 1; + int xdivs = (int)(x_m / 1100.0) + 1; + int ydivs = (int)(y_m / 1100.0) + 1; cout << " M(" << xdivs << "," << ydivs << ")" << endl; double dlon = x_deg / xdivs; double dlat = y_deg / ydivs; // Build the double res input grid - int mult = 4; + int mult = 10; Matrix_Point3Df dPts((xdivs+1) * mult, (ydivs + 1) * mult); for ( int i = 0; i < dPts.rows(); ++i ) { for ( int j = 0; j < dPts.cols(); ++j ) { diff --git a/src/Airports/GenAirports/build.cxx b/src/Airports/GenAirports/build.cxx index 2b16c457..f77dc38c 100644 --- a/src/Airports/GenAirports/build.cxx +++ b/src/Airports/GenAirports/build.cxx @@ -982,6 +982,14 @@ void build_airport( string airport_raw, float alt_m, } } + // Extend the area a bit so we don't have wierd things on the edges + double dlon = max_deg.lon() - min_deg.lon(); + double dlat = max_deg.lat() - min_deg.lat(); + min_deg.setlon( min_deg.lon() - 0.5 * dlon ); + max_deg.setlon( max_deg.lon() + 0.5 * dlon ); + min_deg.setlat( min_deg.lat() - 0.5 * dlat ); + max_deg.setlat( max_deg.lat() + 0.5 * dlat ); + TGAptSurface apt_surf( root, min_deg, max_deg ); // calculate node elevations