Skip to content

Commit

Permalink
edit documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank R Thomsen committed Sep 11, 2024
1 parent 4501772 commit c764b74
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions modules/saul-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c764b74

Please sign in to comment.