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
+1 -1
View File
@@ -160,7 +160,7 @@ class ReprojTile extends Tile {
*/
this.triangulation_ = new Triangulation(
sourceProj, targetProj, limitedTargetExtent, maxSourceExtent,
sourceResolution * errorThresholdInPixels);
sourceResolution * errorThresholdInPixels, targetResolution);
if (this.triangulation_.getTriangles().length === 0) {
// no valid triangles -> EMPTY