1
0
Fork 0

Tweaking parameters.

This commit is contained in:
curt 2003-03-10 03:00:59 +00:00
parent c986802faa
commit bf96033516
2 changed files with 11 additions and 3 deletions

View file

@ -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 ) {

View file

@ -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