Opened 4 weeks ago

Last modified 10 days ago

#35705 assigned New feature

Add rotate geographic database function

Reported by: Enrique Prada Vázquez Owned by: Enrique Prada Vázquez
Component: GIS Version: dev
Severity: Normal Keywords: Geodjango Database Functions Rotate
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: yes
Easy pickings: no UI/UX: no

Description

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 (4)

comment:1 by Claude Paroz, 4 weeks ago

Triage Stage: UnreviewedAccepted
Version: 5.1dev

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.

comment:2 by Enrique Prada Vázquez, 4 weeks ago

Owner: set to Enrique Prada Vázquez
Status: newassigned

comment:3 by Enrique Prada Vázquez, 11 days ago

Has patch: set
Last edited 11 days ago by Enrique Prada Vázquez (previous) (diff)

comment:4 by Claude Paroz, 10 days ago

Patch needs improvement: set
Note: See TracTickets for help on using tickets.
Back to Top