[Spectral View] pixel profile from GEE WMS not displayed

Issue #1365 open
Andreas Rabe created an issue

The actual data looks good in the form view, but nothing is displayed:

Comments (6)

  1. Andreas Rabe reporter

    You mentioned, that the bug should be fixed already. So maybe it is just a problem with QPS submodul?

  2. Benjamin Jakimow

    The error is caused by the GEE layer and it’s data provider. It needs to be properly implemented so that cloning a layer will not return a layer of layer.width() == 0

    layer
    <QgsRasterLayer: 'GEE Image' (wms)>
    layer.width()
    1335833
    layer2 = layer.clone()
    <input>:1: DeprecationWarning: an integer is required (got type ProviderCapabilities).  Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
    layer2.width()
    0
    

  3. Andreas Rabe reporter

    Hmm, the clone() methode just returns the WMS layer, which will return 0 as width.

    I can try to monkey patch that.

    But why is that information needed now? Some days ago the pixel profiles worked fine. Can’t we restore the old behaviour?

  4. Benjamin Jakimow

    The code has’nt changed much. Probably you just used the Profile Source Panel with “First Layer” source, which accesses the layer instance as it exists in the map canvas.
    Selecting the “GEE Layer” specifically accesses a cloned layer, which leads to the situation described above.

  5. Log in to comment