Transform Raster Layer: let the user select output file format
Only tif files can be selected as output. User should be able to select the format.
Comments (15)
-
-
reporter Which is a waste of disk space and time for the user. I suggest you let the user decide at least among the common file formats in hyperspectral imagery. If you have Save as… done it should not be complicated providing that flexibility always.
-
Hi Agus,
I removed ENVI files as possible outputs, because GDAL isn't creating proper *.hdr header files. All the spectral metadata would be missing.
You would need to fix this by calling “Write ENVI header” afterwards. Here:
Or here:
So in principle, I could allow writing ENVI files, but the user needs to be aware of the issue with the header file.
-
reporter Yes, I recall that limitation, which is not your responsibility. Having the tool to create correct hdr files and warn the user (i.e. in a “Known issues and limitations” section in the manual) is the most you can do. But do not totally cut the option of writing envi formats for the user. Let the user decide.
-
Alright, that makes sense. I’ll put the ENVI BSQ, BIL and BIP options back in.
-
- changed milestone to 3.10 (Feature)
-
assigned issue to
-
- changed status to resolved
resolves
#1066→ <<cset 2dccc12e5e19>>
-
reporter Great, thanks.
Perhaps you could fill a ticket in GDAL (sure your opinion will have a lot of weight) and provide them with your code for writing a fully correct hdr file.
-
Thanks Agus, I’ll discuss this with @Benjamin Jakimow .
-
At least we should support the same raster formats like QGIS (which already allows to choose the interleave).
-
The interleave is not really the problem, because we derive that from the file extension:
-
The main problem is the metadata. When you translate a spectral raster with GDAL, important metadata like wavelength and fwhm are missing in the ENVI *.hdr file.
-
The “Save Raster Layer as…” dialog isn’t helping with that, right?
-
It isn’t. Compared to the QGIS QgsRasterLayerSaveAsDialog it misses several file formats and file options.
The help box also shows some general information only, but not file format specific options.For example here: ENVI BIL is selected, but shows a BIGTIFF=YES option, which is not used by ENVI format at all.
-
@Benjamin Jakimow , first of all, you started a totally new discussion, and second, in that new discussion, I think you are wrong
.
Let’s discuss this in our next tech talk.
- Log in to comment
That is true. Almost every EnMAP-Box algorithm will create (compressed) GTiff files.
Some create VRTs.
Only “Save as” and “Translate raster layer” let’s you store ENVI.