Skip to content

Commit

Permalink
sipify
Browse files Browse the repository at this point in the history
  • Loading branch information
lbartoletti authored and nyalldawson committed Jun 9, 2021
1 parent 36a3695 commit da7c614
Showing 1 changed file with 2 additions and 24 deletions.
26 changes: 2 additions & 24 deletions python/core/auto_generated/geometry/qgsgeometryutils.sip.in
Expand Up @@ -812,38 +812,16 @@ already contains a M value.
.. versionadded:: 3.20
%End

static bool transferFirstZOrMValueToPoint( const QgsPointSequence &points, QgsPoint &point );
%Docstring
A Z or M dimension is added to ``point`` if one of the points in the list
``points`` contains Z or M value.

This method is equivalent to successively calling Z and M but avoiding
looping twice over the set of points.

:param points: List of points in which a Z or M point is searched.
:param point: The point to update with Z or M dimension and value.

:return: ``True`` if the point is updated, ``False`` otherwise

.. warning::

This method does not copy the z or m value of the coordinate from the
points whose z or m value is closest to the original x/y point, but only the first one found.


.. versionadded:: 3.20
%End


static bool transferFirstZOrMValueToPoint( const QgsGeometry &geom, QgsPoint &point );
static bool transferFirstZOrMValueToPoint( const QgsPointSequence &points, QgsPoint &point );
%Docstring
A Z or M dimension is added to ``point`` if one of the points in the list
``points`` contains Z or M value.

This method is equivalent to successively calling Z and M but avoiding
looping twice over the set of points.

:param geom: :py:class:`QgsGeometry` in which a Z or M point is searched.
:param points: List of points in which a M point is searched.
:param point: The point to update with Z or M dimension and value.

:return: ``True`` if the point is updated, ``False`` otherwise
Expand Down

0 comments on commit da7c614

Please sign in to comment.