In previous versions of QGIS, the QgsGeometry.as_numpy()
method would return coordinates with XY values only.
In this release as_numpy
has been modified so that the coordinates for geometries with z and/or m values will be returned as xyz, xym, or xyzm accordingly.
This feature was developed by Till Frankenbach