#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. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/010701917fe4a086-436f887e-4cf7-4178-828a-8c31abd36582-000000%40eu-central-1.amazonses.com.