Skip to content

Commit ddb17a5

Browse files
committed
use ascii grid get_noDataValue() to set the nodata value
1 parent c64d8da commit ddb17a5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ninja/KmlVector.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ void KmlVector::setSpeedGrid(AsciiGrid<double> &s, velocityUnits::eVelocityUnits
7070
for (int i = 0; i < spd.get_nRows(); ++i) {
7171
for (int j = 0; j < spd.get_nCols(); ++j) {
7272
if (spd(i, j) > 1e36) {
73-
spd(i, j) = -9999.0;
73+
spd(i, j) = spd.get_noDataValue();
7474
}
7575
}
7676
}

0 commit comments

Comments
 (0)