Open janzandr opened 1 year ago
Note: the custom table widget may look like that in Raster Layer Properties -> GDAL Metadata -> Band Metadata:
@jakimowb, would be good if you could provide your existing widget in a way, that it is reusable. E.g.
w = MetadataWidget()
w.setLayer(myRasterLayer)
dictWithAllValues = w.values()
Discussed with @jakimowb.
Currently we have the "Edit raster source band properties" algorithm for updating a raster source directly.
This algo can only be used, if the raster isn't currently opened inside QGIS as a raster layer. It is proposed to implement a new algorithm, that takes a raster layer (i.e. raster is opened inside QGIS), and creates a new VRT output raster.
Also, instead of having to set a list of values for each metadata item (e.g. Wavelength, FWHM, Scales, etc), it is proposed to implement a custom table widget for editing the metadata.