Opened 6 months ago

Closed 3 days ago

#35705 closed New feature (fixed)

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: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
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 (14)

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

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

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

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

comment:4 by Claude Paroz, 6 months ago

Patch needs improvement: set

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

Patch needs improvement: unset

comment:6 by Natalia Bidart, 2 months ago

Patch needs improvement: set

comment:7 by Enrique Prada Vázquez, 6 weeks ago

Patch needs improvement: unset

comment:8 by Sarah Boyce, 6 weeks ago

Patch needs improvement: set

comment:9 by Enrique Prada Vázquez, 6 weeks ago

Patch needs improvement: unset

comment:10 by Sarah Boyce, 6 weeks ago

Needs tests: set

comment:11 by Enrique Prada Vázquez, 6 weeks ago

Needs tests: unset

comment:12 by Enrique Prada Vázquez, 7 days ago

Hi guys.

Do i need to do something else in order to get this branch merged?

comment:13 by Mariusz Felisiak, 3 days ago

Triage Stage: AcceptedReady for checkin

comment:14 by Mariusz Felisiak <felisiak.mariusz@…>, 3 days ago

Resolution: fixed
Status: assignedclosed

In 51cab4a:

Fixed #35705 -- Added Rotate GIS database function to rotate geometries.

Note: See TracTickets for help on using tickets.
Back to Top