geotiffjs / geotiff.js

geotiff.js is a small library to parse TIFF files for visualization or analysis. It is written in pure JavaScript, and is usable in both the browser and node.js applications.
https://geotiffjs.github.io/
MIT License
866 stars 182 forks source link

idenify does not work on GeoTiff float (Digitales Höhenmodell Oberfläche NRW) #419

Closed pfefferCode closed 7 months ago

pfefferCode commented 7 months ago

Hi!

The problem occurs using tiffs like this: https://www.wcs.nrw.de/geobasis/wcs_nw_dom?REQUEST=GetCoverage&SERVICE=WCS&VERSION=2.0.1&COVERAGEID=nw_dom&FORMAT=image/tiff&SUBSET=x(356000,357000)&SUBSET=y(5699000,5700000)&OUTFILE=dom1_32_356_5699_1_nw_2020&APP=timonline

(hint you can pick your own .tiff by: this URL: https://www.tim-online.nrw.de/tim-online2/?bg=basemapDE_grau&scale=1400000&center=450000,5700000&wms=https://www.wms.nrw.de/geobasis/wms_nw_dhm-uebersicht,nw_dhm_metadaten&opacity=70&legend=true (klick on "download" an choose "Höhenmodelle" --> "Digitales Oberflächenmodell" --> "weiter" --> "*.tiff" --> "weiter" --> select one --> "weiter"....)

I tried on http://app.geotiff.io/

There are two issues that might be connected:

  1. Loading the .tif file is working always only at the second try.
  2. Identifying values does not give a result. In the JavaScript console appears the following error:
    
    bundle.js:35 Uncaught TypeError: Cannot read properties of null (reading 'then')
    at r.<anonymous> (bundle.js:35:1059117)
    at r.fire (bundle.js:92:5274)
    at r._fireDOMEvent (bundle.js:92:43297)
    at r._handleDOMEvent (bundle.js:92:42540)
    at HTMLDivElement.a (bundle.js:92:22968)
    at r.<anonymous> (bundle.js:35:1059117)
    at r.fire (bundle.js:92:5274)
    at r._fireDOMEvent (bundle.js:92:43297)
    at r._handleDOMEvent (bundle.js:92:42540)
    at HTMLDivElement.a (bundle.js:92:22968)
    (anonymous) @ bundle.js:35
    fire @ bundle.js:92
    _fireDOMEvent @ bundle.js:92
    _handleDOMEvent @ bundle.js:92
    a @ bundle.js:92
    (anonymous) @ bundle.js:35
    fire @ bundle.js:92
    _fireDOMEvent @ bundle.js:92
    _handleDOMEvent @ bundle.js:92
    a @ bundle.js:92


Thank you for your work!
   PfefferCode.
DanielJDufour commented 7 months ago

Hi, @pfefferCode . Thank for you reporting this! I think the issue is with the geotiff.io, which is managed in a separate repo. Could you transfer or re-post this issue here: https://github.com/GeoTIFF/geotiff.io/issues

Thank you!

pfefferCode commented 7 months ago

ok, I posted it there: https://github.com/GeoTIFF/geotiff.io/issues/274