Up max node count to 4000
Temporarily disable land cover for testing purposes.
This commit is contained in:
parent
84e7866b35
commit
8d99adeda2
2 changed files with 6 additions and 4 deletions
|
@ -32,7 +32,7 @@
|
||||||
|
|
||||||
|
|
||||||
// Maximum nodes per tile
|
// Maximum nodes per tile
|
||||||
#define FG_MAX_NODES 2000
|
#define FG_MAX_NODES 4000
|
||||||
|
|
||||||
|
|
||||||
#include <simgear/compiler.h>
|
#include <simgear/compiler.h>
|
||||||
|
|
|
@ -270,9 +270,6 @@ static int actual_load_landcover ( LandCover &cover, FGConstruct & c,
|
||||||
// load all 2d polygons matching the specified base path and clip
|
// load all 2d polygons matching the specified base path and clip
|
||||||
// against each other to resolve any overlaps
|
// against each other to resolve any overlaps
|
||||||
static int load_polys( FGConstruct& c ) {
|
static int load_polys( FGConstruct& c ) {
|
||||||
string glc = c.get_work_base();
|
|
||||||
glc += "/LC-Global/gusgs2_0ll.img";
|
|
||||||
LandCover cover( glc );
|
|
||||||
FGClipper clipper;
|
FGClipper clipper;
|
||||||
|
|
||||||
string base = c.get_bucket().gen_base_path();
|
string base = c.get_bucket().gen_base_path();
|
||||||
|
@ -290,8 +287,13 @@ static int load_polys( FGConstruct& c ) {
|
||||||
cout << " loaded " << count << " total polys" << endl;
|
cout << " loaded " << count << " total polys" << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
// Load the land use polygons
|
// Load the land use polygons
|
||||||
|
string glc = c.get_work_base();
|
||||||
|
glc += "/LC-Global/gusgs2_0ll.img";
|
||||||
|
LandCover cover( glc );
|
||||||
count += actual_load_landcover ( cover, c, clipper );
|
count += actual_load_landcover ( cover, c, clipper );
|
||||||
|
#endif
|
||||||
|
|
||||||
point2d min, max;
|
point2d min, max;
|
||||||
min.x = c.get_bucket().get_center_lon() - 0.5 * c.get_bucket().get_width();
|
min.x = c.get_bucket().get_center_lon() - 0.5 * c.get_bucket().get_width();
|
||||||
|
|
Loading…
Add table
Reference in a new issue