diff --git a/src/ninja/gdal_util.cpp b/src/ninja/gdal_util.cpp index 2f0027f7..d955aa43 100644 --- a/src/ninja/gdal_util.cpp +++ b/src/ninja/gdal_util.cpp @@ -218,6 +218,7 @@ bool GDALCalculateAngleFromNorth( GDALDataset *poDS, double &angleFromNorth ) } x2 = x1; + //add 1/4 size of the DEM extent in y direction if(!GDALGetBounds( poDS, boundsLonLat )) { diff --git a/src/ninja/readInputFile.cpp b/src/ninja/readInputFile.cpp index d4eb13ee..83beef7e 100644 --- a/src/ninja/readInputFile.cpp +++ b/src/ninja/readInputFile.cpp @@ -91,7 +91,7 @@ void ninja::readInputFile() else importSingleBand(poDataset); - //compute angle between N-S grid lines in the datase and true north + //compute angle between N-S grid lines in the dataset and true north double angleFromNorth = 0.0; if(!GDALCalculateAngleFromNorth( poDataset, angleFromNorth )) {