[gdal-dev] Read data without reading 'null data'

jramm jamessramm at gmail.com
Mon Jun 6 02:23:24 PDT 2016


This is my mistake. 
I had not truly created a sparse raster! I keep forgetting that the gdal
tools (gdal_translate) will still write the sparse blocks and the sparse
creation option is just to indicate that FillEmptyBlocks should be skipped. 
Creating the sparse file by hand correctly sets the block metadata. 

I can see that BLOCK_SIZE_{0}_{1} will return the size in bytes, or null.
What is interesting then is that if the raster isnt sparse (As in the first
example), BLOCK_SIZE_{0}_{1} appears to be returning garbage...



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Read-data-without-reading-null-data-tp5251626p5270084.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.


More information about the gdal-dev mailing list