[Spectral View] pixel profile from GEE WMS not displayed
The actual data looks good in the form view, but nothing is displayed:
Comments (6)
-
reporter -
- changed status to open
-
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
-
-
assigned issue to
-
assigned issue to
-
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?
-
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. - Log in to comment
You mentioned, that the bug should be fixed already. So maybe it is just a problem with QPS submodul?