[Django] #32352: Django tests uses SRIDs which gives different results by default on different versions of proj4

10 views
Skip to first unread message

Django

unread,
Jan 14, 2021, 1:41:10 AM1/14/21
to django-...@googlegroups.com
#32352: Django tests uses SRIDs which gives different results by default on
different versions of proj4
-------------------------------------+-------------------------------------
Reporter: Jani | Owner: nobody
Tiainen |
Type: | Status: new
Cleanup/optimization |
Component: GIS | Version: 3.1
Severity: Normal | Keywords: gis geometry
Triage Stage: | transformation
Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
Note: this is not actually a bug in Django but default behavior of proj4
library has been changed.

In Django unit tests are few tests that uses WGS84 to NAD83(HARN)
coordinate transformation.

That particular transformation includes datum shift and there are at least
two transformation methods.

This may be encountered in various places, specially it depends on version
of proj4 used in the system what transformation method is used by default.

See issue in GDAL repo for detailed description what/why:

https://github.com/OSGeo/gdal/issues/3377#issuecomment-759651330

--
Ticket URL: <https://code.djangoproject.com/ticket/32352>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jan 14, 2021, 2:25:00 AM1/14/21
to django-...@googlegroups.com
#32352: Django tests uses SRIDs which gives different results by default on
different versions of proj4
-------------------------------------+-------------------------------------
Reporter: Jani Tiainen | Owner: nobody
Type: | Status: closed

Cleanup/optimization |
Component: GIS | Version: 3.1
Severity: Normal | Resolution: duplicate

Keywords: gis geometry | Triage Stage:
transformation | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* status: new => closed
* resolution: => duplicate


Comment:

Duplicate of #32353.

--
Ticket URL: <https://code.djangoproject.com/ticket/32352#comment:1>

Django

unread,
Mar 23, 2021, 4:16:49 AM3/23/21
to django-...@googlegroups.com
#32352: Django tests uses SRIDs which gives different results by default on
different versions of proj4
-------------------------------------+-------------------------------------
Reporter: Jani Tiainen | Owner: nobody
Type: | Status: closed
Cleanup/optimization |
Component: GIS | Version: 3.1
Severity: Normal | Resolution: duplicate

Keywords: gis geometry | Triage Stage:
transformation | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by GitHub <noreply@…>):

In [changeset:"2cd40263348a9c345a58c44d48922ac3b370a119" 2cd40263]:
{{{
#!CommitTicketReference repository=""
revision="2cd40263348a9c345a58c44d48922ac3b370a119"
Refs #32353, Refs #32352 -- Fixed GIS tests with PROJ 7.X.

Different PROJ versions use different transformations, all are correct
as having a 1 meter accuracy.

These are differences in PROJ versions that cannot and should not be
handled in Django itself.

Thanks Jani Tiainen and David Smith for reports.

See: https://github.com/OSGeo/gdal/issues/3377
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/32352#comment:2>

Django

unread,
Mar 23, 2021, 4:18:36 AM3/23/21
to django-...@googlegroups.com
#32352: Django tests uses SRIDs which gives different results by default on
different versions of proj4
-------------------------------------+-------------------------------------
Reporter: Jani Tiainen | Owner: nobody
Type: | Status: closed
Cleanup/optimization |
Component: GIS | Version: 3.1
Severity: Normal | Resolution: duplicate

Keywords: gis geometry | Triage Stage:
transformation | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Mariusz Felisiak <felisiak.mariusz@…>):

In [changeset:"e2e371593ff6b8c9446633a233c73a57d4253aa3" e2e37159]:
{{{
#!CommitTicketReference repository=""
revision="e2e371593ff6b8c9446633a233c73a57d4253aa3"
[3.2.x] Refs #32353, Refs #32352 -- Fixed GIS tests with PROJ 7.X.

Different PROJ versions use different transformations, all are correct
as having a 1 meter accuracy.

These are differences in PROJ versions that cannot and should not be
handled in Django itself.

Thanks Jani Tiainen and David Smith for reports.

See: https://github.com/OSGeo/gdal/issues/3377
Backport of 2cd40263348a9c345a58c44d48922ac3b370a119 from main
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/32352#comment:3>

Django

unread,
Mar 23, 2021, 4:19:05 AM3/23/21
to django-...@googlegroups.com
#32352: Django tests uses SRIDs which gives different results by default on
different versions of proj4
-------------------------------------+-------------------------------------
Reporter: Jani Tiainen | Owner: nobody
Type: | Status: closed
Cleanup/optimization |
Component: GIS | Version: 3.1
Severity: Normal | Resolution: invalid

Keywords: gis geometry | Triage Stage:
transformation | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* resolution: duplicate => invalid


Comment:

Different PROJ versions use different transformations, all are correct as
having a 1 meter accuracy.

These are differences in PROJ versions that cannot and should not be
handled in Django itself.

--
Ticket URL: <https://code.djangoproject.com/ticket/32352#comment:4>

Reply all
Reply to author
Forward
0 new messages