creating new metadata item in GDAL Metadata widget not working

Issue #787 resolved
Andreas Janz created an issue

How to reproduce:

  1. Creating a new item:

2. Click Apply and Ok to close the dialog

3. Re-open the GDAL Metadata → new item is missing again

Comments (12)

  1. Andreas Janz reporter

    Maybe just make the GDAL Metadata widget read-only and remove the edit buttons for v3.9?

  2. Benjamin Jakimow

    AFAIK it is working, but the xml data is written twice: 1. as in the table, but afterwards QGIS overwrites the aux.xml data with it’s own in-memory state. The re-load therefore updates the previous state.

  3. Andreas Janz reporter

    Not quit sure why you concider it “is working”, when QGIS is overwriting my changes again. From a user perspective, it isn’t working.

    Let’s just make it a metadata reader, instead of an editor. Hide the buttons for v3.9. If you can fix this in the future, just show the buttons again.

  4. Benjamin Jakimow

    Checked for ENVI, where it seems to work. Can you provide a list of file formats where it is not working? Seems to be an issue with the GDAL drivers

  5. Andreas Janz reporter

    I testet with GTiff.

    Most important formats are: GTiff, VRT and ENVI. Would be good, if those are working correctly.

    Most important format is GTiff.

  6. Andreas Rabe
    • changed status to open

    If I remember correctly, we decided to not edit raster sources inside the Layer Properties dialog.

    So, shouldn't the GDAL Metadata widget be a read-only widget?

  7. Log in to comment