@dataforsyningen/saul 3.5.0 → 3.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -62,7 +62,7 @@ async function getElevation(x, y, geoTiff) {
|
|
|
62
62
|
return elevation_data[0][0]
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
/** Creates an ASCII visualization of a terrain
|
|
65
|
+
/** Creates an ASCII visualization of a GeoTiff with terrain elevation data. Useful for display in a terminal.
|
|
66
66
|
* NOTE: You may want to use a downsmapled GeoTiff to fit within your terminal window. A GeoTiff pixel is represented by 3 characters each.
|
|
67
67
|
* @param {object} gTiff - GeoTiff output from getTerrainGeoTIFF() or getDenmarkGeoTiff() method
|
|
68
68
|
*/
|
package/package.json
CHANGED
|
@@ -37,7 +37,7 @@ function fetchKote(worldXY) {
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
function fetchImageData(imageId) {
|
|
40
|
-
return fetch(`https://api.dataforsyningen.dk/rest/skraafoto_api/v1.0/search?limit=1&crs=http://www.opengis.net/def/crs/EPSG/0/25832&ids=${imageId}&token
|
|
40
|
+
return fetch(`https://api.dataforsyningen.dk/rest/skraafoto_api/v1.0/search?limit=1&crs=http://www.opengis.net/def/crs/EPSG/0/25832&ids=${imageId}&token=${ auth.API_STAC_TOKEN }`)
|
|
41
41
|
.then((response) => response.json())
|
|
42
42
|
.then((data) => {
|
|
43
43
|
return data.features[0]
|