79206910

Date: 2024-11-20 11:10:17
Score: 0.5
Natty:
Report link

You can change the temporal unit via the QgsMeshLayerDataProvider, which has a setTemporalUnit method. Documentation

from qgis.core import QgsProject, Qgis

layer_name = 'TIN Mesh'
mesh_layer = QgsProject.instance().mapLayersByName('TIN Mesh')[0]
mesh_layer.dataProvider().setTemporalUnit(Qgis.TemporalUnit.Seconds)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: juto96