Opened 2 months ago

Closed 7 weeks ago

#1470 closed enhancement (fixed)

SystemTest_Compare binary files with gdalinfo statistic

Reported by: bphamhuu Owned by: bphamhuu
Priority: major Milestone: 9.4
Component: systemtest Version: development
Keywords: Cc: dmisev
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 Changed 8 weeks ago by bphamhuu

  • Milestone changed from 9.3 to 9.4

comment:2 Changed 7 weeks ago by bphamhuu

  • Resolution set to fixed
  • Status changed from new to closed
  • Type changed from defect to enhancement
Note: See TracTickets for help on using tickets.