summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorenprava <epradavazquez@gmail.com>2024-09-08 20:32:13 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2025-02-23 16:20:57 +0100
commit51cab4ad51616f8fdb050631be5c710b93685ec3 (patch)
treef4168e005509a61a5bba0bbd66991df6a309ece3 /docs
parentf7017db92cee1536c014710f475a613792c1e4b5 (diff)
Fixed #35705 -- Added Rotate GIS database function to rotate geometries.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/contrib/gis/db-api.txt1
-rw-r--r--docs/ref/contrib/gis/functions.txt22
-rw-r--r--docs/releases/6.0.txt4
3 files changed, 23 insertions, 4 deletions
diff --git a/docs/ref/contrib/gis/db-api.txt b/docs/ref/contrib/gis/db-api.txt
index f2b036dac4..ee365b9320 100644
--- a/docs/ref/contrib/gis/db-api.txt
+++ b/docs/ref/contrib/gis/db-api.txt
@@ -420,6 +420,7 @@ Function PostGIS Oracle MariaDB MySQL
:class:`Perimeter` X X X
:class:`PointOnSurface` X X X X
:class:`Reverse` X X X
+:class:`Rotate` X
:class:`Scale` X X
:class:`SnapToGrid` X X
:class:`SymDifference` X X X X X
diff --git a/docs/ref/contrib/gis/functions.txt b/docs/ref/contrib/gis/functions.txt
index 03f5268d55..4e1ae167b8 100644
--- a/docs/ref/contrib/gis/functions.txt
+++ b/docs/ref/contrib/gis/functions.txt
@@ -28,10 +28,11 @@ Measurement Relationships Operations Edi
:class:`Area` :class:`Azimuth` :class:`Difference` :class:`ForcePolygonCW` :class:`AsGeoJSON` :class:`IsEmpty`
:class:`Distance` :class:`BoundingCircle` :class:`Intersection` :class:`MakeValid` :class:`AsGML` :class:`IsValid`
:class:`GeometryDistance` :class:`Centroid` :class:`SymDifference` :class:`Reverse` :class:`AsKML` :class:`MemSize`
-:class:`Length` :class:`ClosestPoint` :class:`Union` :class:`Scale` :class:`AsSVG` :class:`NumGeometries`
-:class:`Perimeter` :class:`Envelope` :class:`SnapToGrid` :class:`FromWKB` :class:`AsWKB` :class:`NumPoints`
- :class:`LineLocatePoint` :class:`Transform` :class:`FromWKT` :class:`AsWKT`
- :class:`PointOnSurface` :class:`Translate` :class:`GeoHash`
+:class:`Length` :class:`ClosestPoint` :class:`Union` :class:`Rotate` :class:`AsSVG` :class:`NumGeometries`
+:class:`Perimeter` :class:`Envelope` :class:`Scale` :class:`FromWKB` :class:`AsWKB` :class:`NumPoints`
+ :class:`LineLocatePoint` :class:`SnapToGrid` :class:`FromWKT` :class:`AsWKT`
+ :class:`PointOnSurface` :class:`Transform` :class:`GeoHash`
+ :class:`Translate`
========================= ======================== ====================== ======================= ================== ================== ======================
``Area``
@@ -556,6 +557,19 @@ SpatiaLite
Accepts a single geographic field or expression and returns a geometry with
reversed coordinates.
+``Rotate``
+==========
+
+.. versionadded:: 6.0
+
+.. class:: Rotate(expression, angle, origin=None, **extra)
+
+*Availability*: `PostGIS <https://postgis.net/docs/ST_Rotate.html>`__
+
+Rotates a geometry by a specified ``angle`` around the origin. Optionally, the
+rotation can be performed around a point, defined by the ``origin``
+parameter.
+
``Scale``
=========
diff --git a/docs/releases/6.0.txt b/docs/releases/6.0.txt
index aeb38d7874..d8e35bb557 100644
--- a/docs/releases/6.0.txt
+++ b/docs/releases/6.0.txt
@@ -68,6 +68,10 @@ Minor features
* The new :attr:`.GEOSGeometry.hasm` property checks whether the geometry has
the M dimension.
+* The new :class:`~django.contrib.gis.db.models.functions.Rotate` database
+ function rotates a geometry by a specified angle around the origin or a
+ specified point.
+
:mod:`django.contrib.messages`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~