Add rotate geographic database function
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:
Change History
(5)
Triage Stage: |
Unreviewed → Accepted
|
Version: |
5.1 → dev
|
Owner: |
set to Enrique Prada Vázquez
|
Status: |
new → assigned
|
Patch needs improvement: |
set
|
Patch needs improvement: |
unset
|
Even if we don't plan to support the entire range of PostGIS functions, as it's rather easy to create your own
GeomOutputGeoFunc
subclass (without resorting to raw SQL), I would rather be positive about adding this one. Patch welcome.