Dynamically chose the number of subdivisions based on the size of the Image.

This commit is contained in:
philip
2020-01-14 13:39:52 +00:00
parent c851f6c6bf
commit d2b0599177
3 changed files with 10 additions and 5 deletions

View File

@@ -47,7 +47,7 @@ class ReprojImage extends ImageBase {
const triangulation = new Triangulation(
sourceProj, targetProj, limitedTargetExtent, maxSourceExtent,
sourceResolution * errorThresholdInPixels);
sourceResolution * errorThresholdInPixels, targetResolution);
const sourceExtent = triangulation.calculateSourceExtent();
const sourceImage = getImageFunction(sourceExtent, sourceResolution, pixelRatio);