Skip to content
Permalink
Browse files
Improve docs
  • Loading branch information
nyalldawson committed Nov 2, 2021
1 parent 515fa62 commit 4b7dff669c6ac6bc9c148248a1f29b09b8864eb3
Showing with 4 additions and 0 deletions.
  1. +2 −0 python/core/auto_generated/geometry/qgsgeometry.sip.in
  2. +2 −0 src/core/geometry/qgsgeometry.h
@@ -384,6 +384,8 @@ Returns the planar, 2-dimensional area of the geometry.
%Docstring
Returns the planar, 2-dimensional length of geometry.

If the geometry is a polygon geometry then the perimeter of the polygon will be returned.

.. warning::

QgsGeometry objects are inherently Cartesian/planar geometries, and the length
@@ -419,6 +419,8 @@ class CORE_EXPORT QgsGeometry
/**
* Returns the planar, 2-dimensional length of geometry.
*
* If the geometry is a polygon geometry then the perimeter of the polygon will be returned.
*
* \warning QgsGeometry objects are inherently Cartesian/planar geometries, and the length
* returned by this method is calculated using strictly Cartesian mathematics. In contrast,
* the QgsDistanceArea class exposes methods for calculating the lengths of geometries using

0 comments on commit 4b7dff6

Please sign in to comment.