Opened 9 years ago
Closed 9 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 , 9 years ago
| Summary: | some GIS raster tests fails locally → some GIS raster tests fail locally |
|---|
comment:2 by , 9 years ago
| Summary: | some GIS raster tests fail locally → GIS raster transformation test failures due to precisions with GDAL 2.1 |
|---|---|
| Triage Stage: | Unreviewed → Accepted |
comment:3 by , 9 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
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 , 9 years ago
| Has patch: | set |
|---|
Note:
See TracTickets
for help on using tickets.
I haven't tried to reproduce myself. Perhaps the test assertions should be relaxed a bit.