Skip to content

Commit 81731e8

Browse files
committed
Correction for creating mask dataset for GDAL 3.x
1 parent 9e6e504 commit 81731e8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/gov/nasa/worldwind/data/GDALDataRaster.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,11 @@ protected Dataset createMaskDataset(int width, int height, Sector sector)
505505

506506
Dataset ds = drvMem.Create("roi-mask", width, height, 1, gdalconst.GDT_UInt32);
507507
Band band = ds.GetRasterBand(1);
508-
band.SetColorInterpretation(gdalconst.GCI_AlphaBand);
508+
509+
// For GDAL 3.x, don't mark band as alpha.
510+
// See https://lists.osgeo.org/pipermail/gdal-dev/2019-June/050518.html
511+
//band.SetColorInterpretation(gdalconst.GCI_AlphaBand);
512+
509513
double missingSignal = (double) GDALUtils.ALPHA_MASK;
510514
band.SetNoDataValue(missingSignal);
511515
band.Fill(missingSignal);

0 commit comments

Comments
 (0)