Extract nodata values from metadata when possible

This commit is contained in:
Tim Schaub
2021-08-19 10:40:59 -06:00
parent 8954f001fa
commit 42970915ea
6 changed files with 59 additions and 12 deletions

View File

@@ -25,7 +25,9 @@ describe('ol.source.GeoTIFF', function () {
it('configures itself from source metadata', function (done) {
source.on('change', () => {
expect(source.bandCount).to.be(3);
expect(source.addAlpha_).to.be(true);
expect(source.bandCount).to.be(4);
expect(source.nodataValues_).to.eql([[0]]);
expect(source.getTileGrid().getResolutions().length).to.be(1);
expect(source.projection.getCode()).to.be('EPSG:4326');
done();