summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/contrib/gis/gdal.txt13
1 files changed, 9 insertions, 4 deletions
diff --git a/docs/ref/contrib/gis/gdal.txt b/docs/ref/contrib/gis/gdal.txt
index f6e9ef0964..be6e738160 100644
--- a/docs/ref/contrib/gis/gdal.txt
+++ b/docs/ref/contrib/gis/gdal.txt
@@ -839,6 +839,15 @@ coordinate transformation:
Returns the region consisting of the union of this geometry and
the other, as a new :class:`OGRGeometry` object.
+ .. attribute:: centroid
+
+ Returns a :class:`Point` representing the centroid of this geometry.
+
+ .. versionchanged:: 5.1
+
+ ``centroid`` was promoted from a :class:`.Polygon` only attribute to
+ being available on all geometry types.
+
.. attribute:: tuple
Returns the coordinates of a point geometry as a tuple, the
@@ -939,10 +948,6 @@ coordinate transformation:
An alias for :attr:`shell`.
- .. attribute:: centroid
-
- Returns a :class:`Point` representing the centroid of this polygon.
-
.. class:: GeometryCollection
.. method:: add(geom)