Skip to content

Commit b932808

Browse files
committedMar 19, 2021
Bugfix: removed bilinear as only sample method
1 parent 83d66c9 commit b932808

7 files changed

+11
-7
lines changed
 

‎dist/0.916ac4d7177e7e02c27b.worker.worker.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dist/0.fba9a2ed94fdac06647d.worker.worker.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dist/0.georaster.browser.bundle.min.worker.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dist/0.georaster.bundle.min.worker.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dist/georaster.browser.bundle.min.js

+4-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dist/georaster.bundle.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ function urlExists(url) {
2020
}
2121

2222
function getValues(geotiff, options) {
23-
const {left, top, right, bottom, width, height} = options;
23+
const {left, top, right, bottom, width, height, resampleMethod} = options;
2424
// note this.image and this.geotiff both have a readRasters method;
2525
// they are not the same thing. use this.geotiff for experimental version
2626
// that reads from best overview
2727
return geotiff.readRasters({
2828
window: [left, top, right, bottom],
2929
width: width,
3030
height: height,
31-
resampleMethod: 'bilinear',
31+
resampleMethod: resampleMethod || 'bilinear',
3232
}).then(rasters => {
3333
/*
3434
The result appears to be an array with a width and height property set.

0 commit comments

Comments
 (0)
Please sign in to comment.