diff --git a/python/core/auto_generated/geometry/qgsgeometryutils.sip.in b/python/core/auto_generated/geometry/qgsgeometryutils.sip.in index 319d054dc5f..7e3348a21d8 100644 --- a/python/core/auto_generated/geometry/qgsgeometryutils.sip.in +++ b/python/core/auto_generated/geometry/qgsgeometryutils.sip.in @@ -759,10 +759,11 @@ A Z dimension is added to ``point`` if one of the point in the list static bool setMValueFromPoints( const QgsPointSequence &points, QgsPoint &point ); %Docstring -A M dimension is added to ``point`` if one of the point in the list -``points`` is in 3D. Moreover, the M value of ``point`` is updated with. +A M dimension is added to ``point`` if one of the points in the list +``points`` contains an M value. Moreover, the M value of ``point`` is +updated with the first M value found in list ``points``. -:param points: List of points in which a 3D point is searched. +:param points: List of points in which a M point is searched. :param point: The point to update with M dimension and value. :return: ``True`` if the point is updated, ``False`` otherwise diff --git a/src/core/geometry/qgsgeometryutils.h b/src/core/geometry/qgsgeometryutils.h index fe319b9bf0e..3565e812677 100644 --- a/src/core/geometry/qgsgeometryutils.h +++ b/src/core/geometry/qgsgeometryutils.h @@ -781,10 +781,11 @@ class CORE_EXPORT QgsGeometryUtils static bool setZValueFromPoints( const QgsPointSequence &points, QgsPoint &point ); /** - * A M dimension is added to \a point if one of the point in the list - * \a points is in 3D. Moreover, the M value of \a point is updated with. + * A M dimension is added to \a point if one of the points in the list + * \a points contains an M value. Moreover, the M value of \a point is + * updated with the first M value found in list \a points. * - * \param points List of points in which a 3D point is searched. + * \param points List of points in which a M point is searched. * \param point The point to update with M dimension and value. * \returns TRUE if the point is updated, FALSE otherwise *