Opened 8 years ago
Closed 8 years ago
#1470 closed enhancement (fixed)
SystemTest_Compare binary files with gdalinfo statistic
Reported by: | Bang Pham Huu | Owned by: | Bang Pham Huu |
---|---|---|---|
Priority: | major | Milestone: | 9.4 |
Component: | systemtest | Version: | development |
Keywords: | Cc: | Dimitar Misev | |
Complexity: | Medium |
Description
Due to in some tests, somehow the size (and some binary data) of test output and test oracle is different, especially jpeg2000 cases. So instead of comparing binary by binary, we can compare the gdalinfo (to check metadata) and statistic (to check values) are the same between output and oracle.
e.g:
Size is 10, 40 Coordinate System is: GEOGCS["NAD83", DATUM["North_American_Datum_1983", SPHEROID["GRS 1980",6378137,298.2572221010002, AUTHORITY["EPSG","7019"]], TOWGS84[0,0,0,0,0,0,0], AUTHORITY["EPSG","6269"]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433], AUTHORITY["EPSG","4269"]] Origin = (0.000000000000000,30.000000000817540) Pixel Size = (2.000000000000000,-0.125000000002355) Metadata: AREA_OR_POINT=Area Image Structure Metadata: INTERLEAVE=BAND Corner Coordinates: Upper Left ( 0.0000000, 30.0000000) ( 0d 0' 0.01"E, 30d 0' 0.00"N) Lower Left ( 0.0000000, 25.0000000) ( 0d 0' 0.01"E, 25d 0' 0.00"N) Upper Right ( 20.0000000, 30.0000000) ( 20d 0' 0.00"E, 30d 0' 0.00"N) Lower Right ( 20.0000000, 25.0000000) ( 20d 0' 0.00"E, 25d 0' 0.00"N) Center ( 10.0000000, 27.5000000) ( 10d 0' 0.00"E, 27d30' 0.00"N) Band 1 Block=10x40 Type=Int16, ColorInterp=Gray Minimum=-9998.000, Maximum=-9998.000, Mean=-9998.000, StdDev=0.000 Metadata: STATISTICS_MAXIMUM=-9998 STATISTICS_MEAN=-9998 STATISTICS_MINIMUM=-9998 STATISTICS_STDDEV=0
Change History (2)
comment:1 by , 8 years ago
Milestone: | 9.3 → 9.4 |
---|
comment:2 by , 8 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Type: | defect → enhancement |
Note:
See TracTickets
for help on using tickets.