From ef40b098bfa5460f2b06adaa16e789432e35f2a7 Mon Sep 17 00:00:00 2001 From: ftomei Date: Mon, 29 Jan 2024 17:39:23 +0100 Subject: [PATCH] update --- gis/gis.cpp | 2 +- gis/gis.h | 2 +- project/project.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gis/gis.cpp b/gis/gis.cpp index b0beb0d32..b229f805e 100644 --- a/gis/gis.cpp +++ b/gis/gis.cpp @@ -459,7 +459,7 @@ namespace gis } - void convertNodataRasterGrid(Crit3DRasterGrid& myGrid) + void convertFlagToNodata(Crit3DRasterGrid& myGrid) { if (myGrid.header->flag == NODATA) return; diff --git a/gis/gis.h b/gis/gis.h index 6ee692f98..94caea8d7 100644 --- a/gis/gis.h +++ b/gis/gis.h @@ -197,7 +197,7 @@ float computeDistance(float x1, float y1, float x2, float y2); double computeDistancePoint(Crit3DUtmPoint *p0, Crit3DUtmPoint *p1); bool updateMinMaxRasterGrid(Crit3DRasterGrid *rasterGrid); - void convertNodataRasterGrid(Crit3DRasterGrid& myGrid); + void convertFlagToNodata(Crit3DRasterGrid& myGrid); bool updateColorScale(Crit3DRasterGrid* rasterGrid, int row0, int col0, int row1, int col1); void getRowColFromXY(const Crit3DRasterHeader& myHeader, double myX, double myY, int *row, int *col); diff --git a/project/project.cpp b/project/project.cpp index f64e6f548..f9adbdabe 100644 --- a/project/project.cpp +++ b/project/project.cpp @@ -996,7 +996,7 @@ bool Project::loadDEM(QString myFileName) QString infoStr = "WARNING: " + QString::number(DEM.header->flag) + " is not a valid NODATA value for DEM!"; infoStr += " It will be converted in: " + QString::number(NODATA); logInfo(infoStr); - gis::convertNodataRasterGrid(DEM); + gis::convertFlagToNodata(DEM); } setColorScale(noMeteoTerrain, DEM.colorScale);