Opened 9 years ago

Closed 9 years ago

#6124 closed defect (fixed)

AAIGrid failure

Reported by: Kurt Schwehr Owned by: Kurt Schwehr
Priority: normal Milestone:
Component: default Version: svn-trunk
Severity: normal Keywords:
Cc:

Description

At r30590

./gdal_unit_test
C++ Test Suite for GDAL C/C++ API
----------------------------------------
GDAL library version: 2.1.0dev
GDAL test data: data
----------------------------------------

CPL: .....Warning 1: One or several characters couldn't be converted correctly from  to UTF-8.
This warning will not be emitted anymore
.... 9
GDAL::AAIGrid: ....[5=F]... 7
GDAL::DTED: ........ 8
GDAL::GTiff: ....... 7
OGR: ..... 5
 0
OGR::Shape: .......... 10
OSR: ......[7=F] 6
OSR::CT: ... 3
OSR::PCI: .. 2
OSR::PROJ.4: .. 2
Triangulation: ... 3

---> group: GDAL::AAIGrid, test: test<5>
     problem: assertion failed
     failed assertion: "Projection does not match expected: expected PROJCS["unnamed",GEOGCS["NAD83",DATUM["North_American_Datum_1983",SPHEROID["GRS 1980",6378137,298.257222101,AUTHORITY["EPSG","7019"]],TOWGS84[0,0,0,0,0,0,0],AUTHORITY["EPSG","6269"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9108"]],AUTHORITY["EPSG","4269"]],PROJECTION["Albers_Conic_Equal_Area"],PARAMETER["standard_parallel_1",61.66666666666666],PARAMETER["standard_parallel_2",68],PARAMETER["latitude_of_center",59],PARAMETER["longitude_of_center",-132.5],PARAMETER["false_easting",500000],PARAMETER["false_northing",500000],UNIT["METERS",1]] actual PROJCS["unnamed",GEOGCS["NAD83",DATUM["North_American_Datum_1983",SPHEROID["GRS 1980",6378137,298.257222101,AUTHORITY["EPSG","7019"]],TOWGS84[0,0,0,0,0,0,0],AUTHORITY["EPSG","6269"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4269"]],PROJECTION["Albers_Conic_Equal_Area"],PARAMETER["standard_parallel_1",61.66666666666666],PARAMETER["standard_parallel_2",68],PARAMETER["latitude_of_center",59],PARAMETER["longitude_of_center",-132.5],PARAMETER["false_easting",500000],PARAMETER["false_northing",500000],UNIT["METERS",1]]"

---> group: OSR, test: test<7>
     problem: assertion failed
     failed assertion: "AUTO42001 urn lookup not as expected: expected PROJCS["UTM Zone 11, Northern Hemisphere",GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],TOWGS84[0,0,0,0,0,0,0],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9108"]],AUTHORITY["EPSG","4326"]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",-117],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAMETER["false_northing",0],UNIT["Meter",1,AUTHORITY["EPSG","9001"]]] actual PROJCS["UTM Zone 11, Northern Hemisphere",GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",-117],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAMETER["false_northing",0],UNIT["Meter",1,AUTHORITY["EPSG","9001"]]]"

Tests summary:
 - failures:2
 - passed: 62
./testcopywords

Change History (2)

comment:1 by Kurt Schwehr, 9 years ago

diff -u foo*.txt
--- foo2.txt	2015-09-21 13:42:54.617144536 -0700
+++ foo.txt	2015-09-21 13:42:47.765091416 -0700
@@ -22,7 +22,7 @@
 UNIT["degree",
 0.0174532925199433,
 AUTHORITY["EPSG",
-"9122"]],
+"9108"]],
 AUTHORITY["EPSG",
 "4269"]],
 PROJECTION["Albers_Conic_Equal_Area"],
@@ -39,4 +39,4 @@
 PARAMETER["false_northing",
 500000],
 UNIT["METERS",
-1]
+1]]
diff -u bar*.txt
--- bar2.txt	2015-09-21 13:42:25.692920295 -0700
+++ bar.txt	2015-09-21 13:42:19.196869930 -0700
@@ -7,6 +7,13 @@
 298.257223563,
 AUTHORITY["EPSG",
 "7030"]],
+TOWGS84[0,
+0,
+0,
+0,
+0,
+0,
+0],
 AUTHORITY["EPSG",
 "6326"]],
 PRIMEM["Greenwich",
@@ -16,7 +23,7 @@
 UNIT["degree",
 0.0174532925199433,
 AUTHORITY["EPSG",
-"9122"]],
+"9108"]],
 AUTHORITY["EPSG",
 "4326"]],
 PROJECTION["Transverse_Mercator"],

comment:2 by Even Rouault, 9 years ago

Resolution: fixed
Status: newclosed

Fixed in r30665

I've modified gdal_unit_test to actually return a non-zero value in case of failure, otherwise failures are easily missed

Note: See TracTickets for help on using tickets.