[Django] #37215: Geography should accept SRID other than 4326

0 views
Skip to first unread message

Django

unread,
Jul 14, 2026, 10:53:09 AM (2 days ago) Jul 14
to django-...@googlegroups.com
#37215: Geography should accept SRID other than 4326
---------------------------+---------------------------------------
Reporter: djonathan | Type: New feature
Status: new | Component: GIS
Version: dev | Severity: Normal
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------+---------------------------------------
Since version 2.2 PostGIS accepts any geographic SRID with the geography
type, but django still has a check to prevent it. It would be nice to
remove this restriction from Django.

PostGIS documentation confirming this:
[https://postgis.net/docs/manual-3.1/postgis_usage.html#PostGIS_Geography:~:text=Prior%20to%20PostGIS%202.2]

Django restriction:
[https://github.com/django/django/blob/main/django/contrib/gis/db/backends/postgis/operations.py#L263]
--
Ticket URL: <https://code.djangoproject.com/ticket/37215>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jul 14, 2026, 11:08:34 AM (2 days ago) Jul 14
to django-...@googlegroups.com
#37215: Geography should accept SRID other than 4326
-----------------------------+--------------------------------------
Reporter: Djonathan | Owner: (none)
Type: New feature | Status: new
Component: GIS | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------+--------------------------------------
Description changed by Djonathan:

Old description:

> Since version 2.2 PostGIS accepts any geographic SRID with the geography
> type, but django still has a check to prevent it. It would be nice to
> remove this restriction from Django.
>
> PostGIS documentation confirming this:
> [https://postgis.net/docs/manual-3.1/postgis_usage.html#PostGIS_Geography:~:text=Prior%20to%20PostGIS%202.2]
>
> Django restriction:
> [https://github.com/django/django/blob/main/django/contrib/gis/db/backends/postgis/operations.py#L263]

New description:

Since version 2.2 PostGIS accepts any geographic SRID with the geography
type, but django still has a check to prevent it. It would be nice to
remove this restriction from Django.

PostGIS documentation confirming this:
[https://postgis.net/docs/manual-3.1/postgis_usage.html#PostGIS_Geography:~:text=Prior%20to%20PostGIS%202.2]

Django restriction:
[https://github.com/django/django/blob/main/django/contrib/gis/db/backends/postgis/operations.py#L263]

I can work on this if accepted.

--
--
Ticket URL: <https://code.djangoproject.com/ticket/37215#comment:1>
Reply all
Reply to author
Forward
0 new messages