Opened 13 years ago

Closed 13 years ago

#3763 closed defect (fixed)

georaster - Error while writing compression and nbits at the same time

Reported by: ilucena Owned by: ilucena
Priority: normal Milestone: 1.8.0
Component: GDAL_Raster Version: svn-trunk
Severity: normal Keywords: georaster
Cc:

Description

There error was reported on OTN Spatial forum as a pyramid error but the checksum test showed that the order of processing compression and nbits packing was wrong.

http://forums.oracle.com/forums/thread.jspa?threadID=1132664&tstart=0

Change History (2)

comment:1 by ilucena, 13 years ago

That was fixed on r20677.

It passed gdal_autotest and the problem that was happening before:

% gdal_translate -of georaster bw.tif geor:scott/tiger@orcl -co nbits=1 -co compress=deflate
Input file size is 512, 512
0...10...20...30...40...50...60...70...80...90...100 - done.
Ouput dataset: (geor:scott/tiger@orcl,GDAL_RDT,1) on SCOTT.GDAL_IMPORT,RASTER
ilucena@think:~/Data> gdalinfo geor:scott/tiger@orcl,GDAL_RDT,1 -checksum
Driver: GeoRaster/Oracle Spatial GeoRaster
Files: none associated
Size is 512, 512
Coordinate System is `'
Image Structure Metadata:
  INTERLEAVE=BAND
  COMPRESSION=DEFLATE
  NBITS=1
Corner Coordinates:
Upper Left  (    0.0,    0.0)
Lower Left  (    0.0,  512.0)
Upper Right (  512.0,    0.0)
Lower Right (  512.0,  512.0)
Center      (  256.0,  256.0)
Band 1 Block=256x256 Type=Byte, ColorInterp=Gray
ERROR 1: ZLib return code (-3)
ERROR 1: ZLib return code (-3)
ERROR 1: ZLib return code (-3)
ERROR 1: ZLib return code (-3)
  Checksum=106

Is not happening anymore:

% gdaladdo geor:scott/tiger@orcl,GDAL_RDT,1 2 4 8 16
0...10...20...30...40...50...60...70...80...90...100 - done.
ilucena@think:~/Data> gdalinfo geor:scott/tiger@orcl,GDAL_RDT,1 -checksum
Driver: GeoRaster/Oracle Spatial GeoRaster
Files: none associated
Size is 512, 512
Coordinate System is `'
Image Structure Metadata:
  INTERLEAVE=BAND
  COMPRESSION=DEFLATE
  NBITS=1
Corner Coordinates:
Upper Left  (    0.0,    0.0)
Lower Left  (    0.0,  512.0)
Upper Right (  512.0,    0.0)
Lower Right (  512.0,  512.0)
Center      (  256.0,  256.0)
Band 1 Block=256x256 Type=Byte, ColorInterp=Gray
  Checksum=100
  Overviews: 256x256, 128x128, 64x64, 32x32
  Overviews checksum: 50, 25, 12, 6

comment:2 by ilucena, 13 years ago

Resolution: fixed
Status: newclosed

Fixed on r20677

Note: See TracTickets for help on using tickets.