Opened 6 years ago

Closed 6 years ago

#29761 closed Bug (fixed)

GIS test failures with PROJ >= 5

Reported by: Sergey Fedoseev Owned by: Sergey Fedoseev
Component: GIS Version: 2.1
Severity: Normal Keywords:
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

======================================================================
FAIL: test_raster_transform (gis_tests.gdal_tests.test_raster.GDALRasterTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/usr/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/sergey/dev/django/tests/gis_tests/gdal_tests/test_raster.py", line 517, in test_raster_transform                                                                                                      
    self.assertAlmostEqual(target.origin[0], 9124842.791079799)
  File "/usr/lib/python3.6/unittest/case.py", line 878, in assertAlmostEqual
    raise self.failureException(msg)
AssertionError: 9124842.791069636 != 9124842.791079799 within 7 places

======================================================================
FAIL: test_transform_3d (gis_tests.geos_tests.test_geos.GEOSTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/usr/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/sergey/dev/django/tests/gis_tests/geos_tests/test_geos.py", line 1121, in test_transform_3d
    self.assertEqual(p3d.z, 100)
  File "/usr/lib/python3.6/unittest/case.py", line 829, in assertEqual
    assertion_func(first, second, msg=msg)
  File "/usr/lib/python3.6/unittest/case.py", line 822, in _baseAssertEqual
    raise self.failureException(msg)
AssertionError: 100.00001595821232 != 100

----------------------------------------------------------------------

I'm using Debian testing and have libgdal20=2.3.1+dfsg-3 and libproj13=5.1.0-2 installed. Probably these failures are related to libproj.

Change History (6)

comment:1 by Sergey Fedoseev, 6 years ago

Owner: changed from nobody to Sergey Fedoseev
Status: newassigned

comment:2 by Carlton Gibson, 6 years ago

Has patch: set
Triage Stage: UnreviewedReady for checkin
Type: UncategorizedBug
Version 0, edited 6 years ago by Carlton Gibson (next)

comment:3 by Claude Paroz, 6 years ago

Might be worth documenting the PROJ 5.0/5.1 compatibility in https://github.com/django/django/blob/master/docs/ref/contrib/gis/install/geolibs.txt

comment:4 by Sergey Fedoseev, 6 years ago

Also tested with PROJ 5.2, so added it to docs too.

comment:5 by Claude Paroz, 6 years ago

Summary: GIS test failuresGIS test failures with PROJ >= 5

comment:6 by Tim Graham <timograham@…>, 6 years ago

Resolution: fixed
Status: assignedclosed

In c5e450a:

Fixed #29761 -- Confirmed support for PROJ 5.x.

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