Opened 4 months ago

Last modified 3 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 (6)

comment:1 by Claude Paroz, 4 months 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 months ago

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

comment:3 by Enrique Prada Vázquez, 3 months ago

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

comment:4 by Claude Paroz, 3 months ago

Patch needs improvement: set

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

Patch needs improvement: unset

comment:6 by Natalia Bidart, 3 days ago

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