diff --git a/src/Prep/Terra/GreedyInsert.cc b/src/Prep/Terra/GreedyInsert.cc index 34988b51..49b16725 100644 --- a/src/Prep/Terra/GreedyInsert.cc +++ b/src/Prep/Terra/GreedyInsert.cc @@ -21,15 +21,26 @@ GreedySubdivision::GreedySubdivision(Map *map) int w = H->width; int h = H->height; + real range = H->max - H->min; is_used.init(w, h); int x,y; for(x=0;xeval(x,y) > 10 ) { + if ( range < 30000 ) { is_used(x,y) = DATA_POINT_UNUSED; } else { - is_used(x,y) = DATA_VALUE_UNKNOWN; + // data includes SRTM void's + // cout << "marking " << x << "," << y << " = " + // << map->eval(x,y) << " as "; + if ( map->eval(x,y) > (H->min + 1) ) { + is_used(x,y) = DATA_POINT_UNUSED; + // cout << "UNUSED"; + } else { + is_used(x,y) = DATA_VALUE_UNKNOWN; + // cout << "UNKNOWN"; + } + // cout << endl; } }