summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDavid Smith <39445562+smithdc1@users.noreply.github.com>2024-10-22 21:24:36 +0100
committerGitHub <noreply@github.com>2024-10-22 17:24:36 -0300
commit04adff9f98a93a546d7b4d7453b80965233d22a3 (patch)
treead2b2eec7489a7dc548807c3b6fb237938049ecb /docs
parentdd0a116b93c40f9febf0e09614ad666af1191744 (diff)
Refs #34406 -- Added support for GDAL curved geometries.
Co-authored-by: Fabien Le Frapper <contact@fabienlefrapper.me>
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/contrib/gis/gdal.txt20
-rw-r--r--docs/releases/5.2.txt6
2 files changed, 25 insertions, 1 deletions
diff --git a/docs/ref/contrib/gis/gdal.txt b/docs/ref/contrib/gis/gdal.txt
index c2a333f895..726cd83756 100644
--- a/docs/ref/contrib/gis/gdal.txt
+++ b/docs/ref/contrib/gis/gdal.txt
@@ -611,6 +611,26 @@ coordinate transformation:
>>> polygon.geom_count
1
+ .. attribute:: has_curve
+
+ .. versionadded:: 5.2
+
+ A boolean indicating if this geometry is or contains a curve geometry.
+
+ .. method:: get_linear_geometry
+
+ .. versionadded:: 5.2
+
+ Returns a linear version of the geometry. If no conversion can be made, the
+ original geometry is returned.
+
+ .. method:: get_curve_geometry
+
+ .. versionadded:: 5.2
+
+ Returns a curved version of the geometry. If no conversion can be made, the
+ original geometry is returned.
+
.. attribute:: point_count
Returns the number of points used to describe this geometry:
diff --git a/docs/releases/5.2.txt b/docs/releases/5.2.txt
index 9090f8b70a..507676d998 100644
--- a/docs/releases/5.2.txt
+++ b/docs/releases/5.2.txt
@@ -94,7 +94,11 @@ Minor features
:mod:`django.contrib.gis`
~~~~~~~~~~~~~~~~~~~~~~~~~
-* ...
+* GDAL now supports curved geometries ``CurvePolygon``, ``CompoundCurve``,
+ ``CircularString``, ``MultiSurface``, and ``MultiCurve`` via the new
+ :attr:`.OGRGeometry.has_curve` property, and the
+ :meth:`.OGRGeometry.get_linear_geometry` and
+ :meth:`.OGRGeometry.get_curve_geometry` methods.
:mod:`django.contrib.messages`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~