Re: [QGIS-Developer] Return NaN value while updating length in QGIS 3.22

2022-11-30 Thread Nyall Dawson via QGIS-Developer
On Thu, 1 Dec 2022 at 14:33, Paul N via QGIS-Developer wrote: > > I have line data in Postgresql and while computing lenth of line using > $length in filed calculator it give NaN value. > > While QGIS 3.16 giving correct length output. > Any bug? A lot more information is required. Can you open

[QGIS-Developer] Return NaN value while updating length in QGIS 3.22

2022-11-30 Thread Paul N via QGIS-Developer
I have line data in Postgresql and while computing lenth of line using $length in filed calculator it give NaN value. While QGIS 3.16 giving correct length output. Any bug? Regards Paul N ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org

[QGIS-Developer] createvectorTable error: Could not retrieve driver for connection

2022-11-30 Thread Raymond Nijssen via QGIS-Developer
Hi developers, Recently some users of my plugin started getting errors in the code that creates a .gpkg file with a table. I wrote a piece of test code: gpkg_fn = '/home/raymond/tmp/test.gpkg' md = QgsProviderRegistry.instance().providerMetadata('ogr') conn = md.createConnection(gpkg_fn, {})

Re: [QGIS-Developer] QGIS expression to get internal ID of a feature in a related layer

2022-11-30 Thread Andreas Neumann via QGIS-Developer
Hi Stefan, I got it work with "aggregate()" not with "relation_aggregate()" Not sure if relation_aggregate() works in both directions? I also got a warning "The generated relations for a polymorphic relation cannot be used" ... I have inheritance in my data model - maybe that is the cause

Re: [QGIS-Developer] Mesh Layers: Way to update/repaint the QgsMeshRendererScalarSettingsWidget after recreating color ramp

2022-11-30 Thread Richard Duivenvoorde via QGIS-Developer
On 11/29/22 17:25, Vincent Cloarec wrote: Hi Richard, Can you precise how do you set the color ramp to the mesh layer ? Maybe you set only classes (color/value) ? Hi Vincent, Thanks for looking in my mail. These are my first Mesh experiments (using pyqgis). So maybe I'm totally off. So