1
0
Fork 0

Working on adding true coast lines with all non-land areas now becoming

ocean.
This commit is contained in:
curt 1999-05-13 02:37:40 +00:00
parent 5e40c3dfb9
commit 9d9c1676c0

View file

@ -85,13 +85,14 @@ int load_polys( FGConstruct& c ) {
FGClipper clipper;
string base = c.get_bucket().gen_base_path();
string poly_path;
int result;
// initialize clipper
clipper.init();
// load airports
string poly_path = c.get_work_base() + ".apt" + "/Scenery/" + base;
poly_path = c.get_work_base() + ".apt" + "/Scenery/" + base;
cout << "poly_path = " << poly_path << endl;
result = actual_load_polys( poly_path, c, clipper );
cout << " loaded " << result << " polys" << endl;
@ -102,6 +103,12 @@ int load_polys( FGConstruct& c ) {
result = actual_load_polys( poly_path, c, clipper );
cout << " loaded " << result << " polys" << endl;
// load land masses
poly_path = c.get_work_base() + ".states" + "/Scenery/" + base;
cout << "poly_path = " << poly_path << endl;
result = actual_load_polys( poly_path, c, clipper );
cout << " loaded " << result << " polys" << endl;
point2d min, max;
min.x = c.get_bucket().get_center_lon() - 0.5 * c.get_bucket().get_width();
min.y = c.get_bucket().get_center_lat() - 0.5 * c.get_bucket().get_height();