Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#6706 closed defect (fixed)

SPARSE_OK=FALSE is not honored once SetNoDataValue is used

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

Description

If the a NoDataValue is set, the file will always be created as SPARSE_OK=TRUE even if we ask specifically to create it with SPARSE_OK=FALSE. The Use of Fill to write nullData in the file doesn't change the behavior.

Using CreateCopy with that file as input will also ignore the options SPARSE_OK=FALSE and always write a new file with SPARSE_OK=TRUE.

Attachments (1)

SparseOptionNotWorking.cpp (1.3 KB ) - added by aghariani 7 years ago.
Example of SPARSE_OK=FALSE not working

Download all attachments as: .zip

Change History (4)

by aghariani, 7 years ago

Attachment: SparseOptionNotWorking.cpp added

Example of SPARSE_OK=FALSE not working

comment:1 by Even Rouault, 7 years ago

Resolution: fixed
Status: newclosed

In 35982:

GTiff: make sure that by default empty tiles get written to disk, when nodata is set (trunk only, fixes #6706)

comment:2 by Even Rouault, 7 years ago

Thanks for the precise bug reports!

comment:3 by aghariani, 7 years ago

Thank you for the quick fix!

Note: See TracTickets for help on using tickets.