DESIS L1B raster is not behaving correctly in MapView and SpectralView

Issue #712 resolved
Andreas Janz created an issue

testet with: san_EnMAP\Rohdaten\EnMAP-Box external Sensor Products\desis\DESIS-HSI-L1B-DT1203190212_025-20191203T021128-V0210\DESIS-HSI-L1B-DT1203190212_025-20191203T021128-V0210-SPECTRAL_IMAGE.tif

  1. When opening the raster in a MapView, it is not zoomed to full extent. But, this can be done manually afterwards.
  2. When plotting a spectral profile, an error is raised. Most likely, the missing CRS is not correctly handled
Traceback (most recent call last):
  File "D:\source\QGISPlugIns\enmap-box\enmapbox\gui\enmapboxgui.py", line 1175, in <lambda>
    lambda crs, pt, c=canvas: self.setCurrentLocation(SpatialPoint(crs, pt), canvas)
  File "D:\source\QGISPlugIns\enmap-box\enmapbox\gui\enmapboxgui.py", line 1608, in setCurrentLocation
    self.loadCurrentMapSpectra(spatialPoint, mapCanvas)
  File "D:\source\QGISPlugIns\enmap-box\enmapbox\gui\enmapboxgui.py", line 1225, in loadCurrentMapSpectra
    panel.loadCurrentMapSpectra(spatialPoint, mapCanvas=mapCanvas, runAsync=runAsync)
  File "D:\source\QGISPlugIns\enmap-box\enmapbox\externals\qps\speclib\gui\spectralprofilesources.py", line 2064, in loadCurrentMapSpectra
    return self.mBridge.loadProfiles(spatialPoint, mapCanvas=mapCanvas, runAsync=runAsync)
  File "D:\source\QGISPlugIns\enmap-box\enmapbox\externals\qps\speclib\gui\spectralprofilesources.py", line 1442, in loadProfiles
    profileBlock.setPositions(geo_x, geo_y, layer.crs())
  File "D:\source\QGISPlugIns\enmap-box\enmapbox\externals\qps\speclib\core\spectralprofile.py", line 1135, in setPositions
    assert crs.isValid()
AssertionError

Also note that QGIS handles the L1B raster quite nicely:

Comments (6)

  1. Log in to comment