Opened 8 years ago

Closed 8 years ago

#27493 closed Cleanup/optimization (fixed)

GIS raster transformation test failures due to precisions with GDAL 2.1

Reported by: Sergey Fedoseev Owned by: Nicolas Noé
Component: GIS Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Installed GDAL version: 2.1.2.

======================================================================
FAIL: test_implicit_raster_transformation (gis_tests.rasterapp.test_rasterfield.RasterFieldTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/sergey/dev/django/tests/gis_tests/rasterapp/test_rasterfield.py", line 105, in test_implicit_raster_transformation
    23.94249275457565, 0.0, -9.459646421449934e-06]
AssertionError: Lists differ: [-87.92985512665508, 9.4596464... != [-87.9298551266551, 9.45964642...

First differing element 0:
-87.92985512665508
-87.9298551266551

- [-87.92985512665508,
?                  ^^

+ [-87.9298551266551,
?                  ^

   9.459646421449934e-06,
   0.0,
   23.94249275457565,
   0.0,
   -9.459646421449934e-06]

======================================================================
FAIL: test_raster_transform (gis_tests.gdal_tests.test_raster.GDALRasterTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/sergey/dev/django/tests/gis_tests/gdal_tests/test_raster.py", line 363, in test_raster_transform
    self.assertEqual(target.origin, [9124842.791079799, 1589911.6476407414])
AssertionError: [9124842.791079797, 1589911.6476407414] != [9124842.791079799, 1589911.6476407414]

Change History (6)

comment:1 by Sergey Fedoseev, 8 years ago

Summary: some GIS raster tests fails locallysome GIS raster tests fail locally

comment:2 by Tim Graham, 8 years ago

Summary: some GIS raster tests fail locallyGIS raster transformation test failures due to precisions with GDAL 2.1
Triage Stage: UnreviewedAccepted

I haven't tried to reproduce myself. Perhaps the test assertions should be relaxed a bit.

comment:3 by Nicolas Noé, 8 years ago

Owner: changed from nobody to Nicolas Noé
Status: newassigned

I can reproduce with gdal 1.11.5 (was working fine with 1.11.3).

Working on a simple patch to relax precision expectations, as suggested by Tim.

comment:5 by Nicolas Noé, 8 years ago

Has patch: set

comment:6 by Claude Paroz <claude@…>, 8 years ago

Resolution: fixed
Status: assignedclosed

In a269018e:

Fixed #27493 -- Fixed test failure with recent GDAL versions

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