Working on adding true coast lines with all non-land areas now becoming
ocean.
This commit is contained in:
parent
5e40c3dfb9
commit
9d9c1676c0
1 changed files with 8 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue