-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using the WMS-provider.inspect as feature in pyqgis gives: "unable to convert a C++ 'QgsFeatureStoreList' instance to a Python object" #39479
Comments
Maybe it is due to the fact that this WMS server does not support the IdentifyValue capability? |
@agiudiceandrea I am not familiar with the IdentifyValue capability? Is this a new WMS request? |
@rduivenvoorde, with your layer (and AFAIK generally with WMS layers) : QGIS/src/core/raster/qgsrasterinterface.h Lines 183 to 196 in 4f834ca
This means that the WMS raster layer does not support QgsRaster::IdentifyFormatValue format so both identify( , QgsRaster.IdentifyFormatValue) and sample() will fail: For a WCS layers, |
Cool. Thanks Nyall! |
plz see:
https://lists.osgeo.org/pipermail/qgis-user/2020-October/046834.html
in short:
TypeError: unable to convert a C++ 'QgsFeatureStoreList' instance to a Python object
or:
cannot unpack non-iterable QgsRasterIdentifyResult object
Is this missing some SIP magic?
Or is this not supposed to work?
Note that
https://docs.qgis.org/3.10/en/docs/pyqgis_developer_cookbook/raster.html#query-values
do not work on a WMS?
To reproduce:
The text was updated successfully, but these errors were encountered: