COST231 bugfix for large city

This commit is contained in:
alex
2016-10-16 20:47:15 +01:00
parent a73e0e3a6e
commit f48234f6d5
3 changed files with 6 additions and 1 deletions

View File

@@ -252,11 +252,15 @@ int loadLIDAR(char *filenames)
height = atoi(pch); // nrows
if (!dem_alloced) {
//Reduce MAXPAGES to increase speed
MAXPAGES=fc;
if(width>height){
IPPD = width;
}else{
IPPD = height;
}
// add fudge as reprojected tiles sometimes vary by a pixel or two
IPPD+=5;
ARRAYSIZE = (MAXPAGES * IPPD) + 10;
do_allocs();
dem_alloced = 1;