From c764b74022bf07c25247ea0bb37ca03713d1be7c Mon Sep 17 00:00:00 2001 From: Frank R Thomsen Date: Wed, 11 Sep 2024 09:21:42 +0200 Subject: [PATCH] edit documentation --- modules/api.js | 2 +- modules/saul-core.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/api.js b/modules/api.js index 27488de..ab70c86 100644 --- a/modules/api.js +++ b/modules/api.js @@ -243,7 +243,7 @@ function getTerrainGeoTIFF(stac_item, auth, resolution = 0.05, sizeX = 300) { * @param {Object} options * @param {Object} options.src - URL to download a pre-generated GeoTiff. * @param {Object} options.auth - API autentication data. See ../config.js.example for reference. - * @param {Array} options.size - Size (width and height) of the geoTiff image to return + * @param {Number} options.size - Width of the geoTiff image to return * @returns GeoTIFF raster with elevation data */ function getDenmarkGeoTiff(options) { diff --git a/modules/saul-core.js b/modules/saul-core.js index c4008d4..e394378 100644 --- a/modules/saul-core.js +++ b/modules/saul-core.js @@ -202,8 +202,8 @@ async function compareZ(options) { const delta = Math.abs(world_xyz[2] - options.z) // Check delta vs. limit. If the difference is too big, try building coordinates with the new z - // Make sure the recursive loop ends at some point (iteration = 10) even if no precise z is found - if (options.iteration < 10 && delta > options.limit) { + // Make sure the recursive loop ends after 20 iterations even if no precise z is found + if (options.iteration < 20 && delta > options.limit) { options.iteration++ options.z = world_xyz[2] return compareZ(options)