[GRASS-dev] [GRASS GIS] #2349: CELL raster format: make ZLIB level 3 standard compression instead of RLE

GRASS GIS trac at osgeo.org
Mon May 18 12:51:32 PDT 2015


#2349: CELL raster format: make ZLIB level 3 standard compression instead of RLE
--------------------------+-------------------------------------------
  Reporter:  neteler      |      Owner:  grass-dev@…
      Type:  enhancement  |     Status:  new
  Priority:  critical     |  Milestone:  7.1.0
 Component:  Raster       |    Version:  svn-trunk
Resolution:               |   Keywords:  compression, r.compress, null
       CPU:  Unspecified  |   Platform:  All
--------------------------+-------------------------------------------

Comment (by glynn):

 Replying to [comment:23 neteler]:
 > After cleaning up well on that machine, it is now finally working (sorry
 for the delay).

 Committed in r65272, with one minor change: before writing out the null
 file, both cell_misc/null and cell_misc/null2 are deleted, not just the
 file which is being replaced.

 This avoids the situation where overwriting a map with null compression
 disabled would leave any compressed null file in place, resulting in the
 map having both a new uncompressed null file and an old compressed null
 file, with the new file being ignored (a compressed null file takes
 precedence).

 Actually, the precedence should probably be changed. If someone uses an
 older version of GRASS to overwrite a map which already has a compressed
 null file, newer versions of GRASS will use the (stale) compressed null
 file. It would be more robust to use the absence of an uncompressed null
 file to dictate the use of the compressed file, rather than just the
 presence of a compressed file.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2349#comment:24>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list