#35705: Add rotate geographic database function
-------------------------------------+-------------------------------------
Reporter: enprava | Type: New
| feature
Status: new | Component: GIS
Version: 5.1 | Severity: Normal
Keywords: Geodjango Database | Triage Stage:
Functions Rotate | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Currently, Django’s GIS module supports translating and scaling geometries
using Translate and Scale functions, but it lacks a Rotate function
equivalent to PostGIS’s ST_Rotate. Adding a Rotate function would enhance
the module's capabilities, allowing users to rotate geometries directly
within Django ORM without resorting to raw SQL.
This function could accept an angle in radians (or optionally degrees) and
support rotation around the origin (or optionally a specified point).
Relevant links:
-
https://docs.djangoproject.com/en/dev/ref/contrib/gis/functions/#django.contrib.gis.db.models.functions.Reverse
-
https://postgis.net/docs/ST_Rotate.html
--
Ticket URL: <
https://code.djangoproject.com/ticket/35705>
Django <
https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.