mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Refs #34406 -- Added support for GDAL curved geometries.
Co-authored-by: Fabien Le Frapper <contact@fabienlefrapper.me>
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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`
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Reference in New Issue
Block a user