❌ Test failed
Test | test_r_import |
Testsuite | ./scripts/r.import |
Test file | ./scripts/r.import/testsuite/test_r_import.py |
Status | FAILED |
Return code | 1 |
Number of tests | 4 |
Successful tests | 1 |
Failed tests | 3 |
Percent successful | 25% |
Test duration | 0:00:04.176782 |
Tested modules | r.import |
/usr/lib/python2.7/xml/etree/ElementTree.py:1638: DeprecationWarning: This method of XMLParser is deprecated. Define doctype() method on the TreeBuilder target. DeprecationWarning, FF.F ====================================================================== FAIL: test_import_asc_custom_res (__main__.TestRImportRegion) Import ASC in different projection, with specified resolution ---------------------------------------------------------------------- Traceback (most recent call last): File "scripts/r.import/testsuite/test_r_import.py", line 35, in test_import_asc_custom_res resample='nearest', resolution='value', resolution_value=30) File "etc/python/grass/gunittest/case.py", line 1164, in assertModule self.fail(self._formatMessage(msg, stdmsg)) AssertionError: Running <r.import> module ended with non-zero return code (1) Called: r.import(input='data/data2.asc', memory=300, output='test_r_import_imported', resample='nearest', extent='input', resolution='value', resolution_value=30.0) See the following errors: WARNING: Projection of dataset does not appear to match current location. Location PROJ_INFO is: name: Universal Transverse Mercator proj: utm datum: wgs84 ellps: wgs84 zone: 32 no_defs: defined Dataset PROJ_INFO is: name: Albers_Conical_Equal_Area datum: nad83 ellps: grs80 proj: aea lat_1: 29.5 lat_2: 45.5 lat_0: 23 lon_0: -96 x_0: 0 y_0: 0 no_defs: defined ERROR: proj Importing raster map <test_r_import_imported>... 0..33..66..100 WARNING: Number of centroids exceeds number of areas: 1 > 0 WARNING: Number of incorrect boundaries: 1 WARNING: Number of centroids outside area: 1 Estimated target resolution for input band <test_r_import_imported>: 145.075351769 Using given resolution for input band <test_r_import_imported>: 30.0 Reprojecting <test_r_import_imported>... ERROR: The reprojected raster <test_r_import_imported> is empty ====================================================================== FAIL: test_import_asc_region_extent (__main__.TestRImportRegion) Import ASC in different projection in specified region ---------------------------------------------------------------------- Traceback (most recent call last): File "scripts/r.import/testsuite/test_r_import.py", line 44, in test_import_asc_region_extent resample='nearest', extent='region', resolution='region') File "etc/python/grass/gunittest/case.py", line 1164, in assertModule self.fail(self._formatMessage(msg, stdmsg)) AssertionError: Running <r.import> module ended with non-zero return code (1) Called: r.import(input='data/data2.asc', memory=300, output='test_r_import_imported', resample='nearest', extent='region', resolution='region') See the following errors: WARNING: Projection of dataset does not appear to match current location. Location PROJ_INFO is: name: Universal Transverse Mercator proj: utm datum: wgs84 ellps: wgs84 zone: 32 no_defs: defined Dataset PROJ_INFO is: name: Albers_Conical_Equal_Area datum: nad83 ellps: grs80 proj: aea lat_1: 29.5 lat_2: 45.5 lat_0: 23 lon_0: -96 x_0: 0 y_0: 0 no_defs: defined ERROR: proj Importing raster map <test_r_import_imported>... 0..33..66..100 Estimated target resolution for input band <test_r_import_imported>: 0.675429225938 Using current region resolution for input band <test_r_import_imported>: nsres=27.5, ewres=25.0 Reprojecting <test_r_import_imported>... ERROR: Input raster map is outside current region ERROR: Unable to to reproject raster <test_r_import_imported> ====================================================================== FAIL: test_import_same_proj_tif (__main__.TestRImportRegion) Import tif in same proj, default params ---------------------------------------------------------------------- Traceback (most recent call last): File "scripts/r.import/testsuite/test_r_import.py", line 27, in test_import_same_proj_tif resample='bilinear') File "etc/python/grass/gunittest/case.py", line 1164, in assertModule self.fail(self._formatMessage(msg, stdmsg)) AssertionError: Running <r.import> module ended with non-zero return code (1) Called: r.import(input='data/data1.tif', memory=300, output='test_r_import_imported', resample='bilinear', extent='input', resolution='estimated') See the following errors: WARNING: Projection of dataset does not appear to match current location. Location PROJ_INFO is: name: Universal Transverse Mercator proj: utm datum: wgs84 ellps: wgs84 zone: 32 no_defs: defined Dataset PROJ_INFO is: name: Lambert Conformal Conic datum: nad83 ellps: grs80 proj: lcc lat_1: 36.16666666666666 lat_2: 34.33333333333334 lat_0: 33.75 lon_0: -79 x_0: 609601.22 y_0: 0 no_defs: defined ERROR: proj Importing raster map <test_r_import_imported>... 0..10..20..30..40..50..60..70..80..90..100 WARNING: Number of centroids exceeds number of areas: 1 > 0 WARNING: Number of incorrect boundaries: 1 WARNING: Number of centroids outside area: 1 Estimated target resolution for input band <test_r_import_imported>: 142.469498705 Reprojecting <test_r_import_imported>... ERROR: The reprojected raster <test_r_import_imported> is empty ---------------------------------------------------------------------- Ran 4 tests in 3.425s FAILED (failures=3)