Skip to content

Commit

Permalink
added temporary fix to srtm download breaking because of no data fill…
Browse files Browse the repository at this point in the history
…ing for bigger domain sizes, by increasing the nSearchPixels/dfMaxSearchDist from the default value of 100 to a value of 120 in gdal_util GDALFilBandNoData(). This at least makes it work for domains up to 30 km x 30 km in size, though something else is needed for even bigger domains. For issue #529
  • Loading branch information
latwood committed Sep 10, 2024
1 parent 7ef8623 commit 2e66033
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ninja/gdal_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ int GDALFillBandNoData(GDALDataset *poDS, int nBand, int nSearchPixels)

poBand = poDS->GetRasterBand(1);

GDALFillNodata(poBand, NULL, 100, 0, 0, NULL, NULL, NULL);
GDALFillNodata(poBand, NULL, 120, 0, 0, NULL, NULL, NULL);

double dfNoData = poBand->GetNoDataValue(NULL);

Expand Down

0 comments on commit 2e66033

Please sign in to comment.