Extract nodata values from metadata when possible
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user