[QGIS-Developer] [RoadMap] Dates Versions Release Calendar

2020-04-25 Thread João Gaspar
Hi devs,
it is possible or integrate the roadmap of releases in a shared calendar?

The idea is to receive in the Calendar the releases dates through calendar
notifications to easily manager test and deploy QGIS releases

I don't know if this make sense please let me know if I need to clarify
more this subject.

Best regards,
João Gaspar
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

[QGIS-Developer] Trivial fix on DB Manager (PostgreSQL)

2020-04-25 Thread José de Paula Rodrigues
Hi all,

I've opened a new issue regarding CONSTRAINT TRIGGERs on DB Manager (
https://github.com/qgis/QGIS/issues/35967) - in which tables with such a
trigger error out when trying to display their properties -, along with a
trivial, one-line PR (https://github.com/qgis/QGIS/pull/35983). Could a
commiter take a look at those? Thank you very much.

-- 
... et cognoscetis veritatem et veritas liberabit vos.
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

[QGIS-Developer] Mesh layer

2020-04-25 Thread Jorge Almerio
Hi everyone,

Sometimes I got "NaN" return when trying to get scalar value to a point from a 
Mesh layer. I guess the reason is that it was not rendered previously as said 
in the documentation.


QgsMeshDatasetValue:
"Note:
It uses previously cached and indexed triangular mesh and so if the layer 
has not been rendered previously (e.g. when used in a script) it returns NaN 
value"

When I turn ON and OFF the loaded mesh layer in the active project it Works!

I would like to know if there is a proper way to render the mesh layer, before 
get values.

Below is my code:

proj = QgsProject.instance()
layerPto = iface.activeLayer() # a Point layer
layer = proj.mapLayersByName("mesh01")[0] # a Mesh layer
dataset = QgsMeshDatasetIndex(0,0)
for feat in layerPto.getSelectedFeatures():
ptoGeo = feat.geometry()
pt = ptoGeo.asPoint()
value = layer.datasetValue(dataset, pt).scalar()
print('elevation={}'.format(value))



___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer