Opened 34 minutes ago
Last modified 18 minutes ago
#37215 new New feature
Geography should accept SRID other than 4326
| Reported by: | Djonathan | Owned by: | |
|---|---|---|---|
| Component: | GIS | Version: | dev |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description (last modified by )
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.