Skip to content
Permalink
Browse files
Allows floating point NoData/NULLVALUEs for floating point images.
  • Loading branch information
George Chang authored and tbonfort committed Nov 20, 2013
1 parent 6249402 commit b7cb5712b6bcdb23b2aa8214207bfd2feff50465
Showing 1 changed file with 1 addition and 1 deletion.
@@ -1581,7 +1581,7 @@ imageObj *msImageCreate(int width, int height, outputFormatObj *format,
for( ; i > 0; )
image->img.raw_16bit[--i] = nv;
} else if( format->imagemode == MS_IMAGEMODE_FLOAT32 ) {
float nv = atoi(nullvalue);
float nv = atof(nullvalue);
for( ; i > 0; )
image->img.raw_float[--i] = nv;
} else if( format->imagemode == MS_IMAGEMODE_BYTE ) {

0 comments on commit b7cb571

Please sign in to comment.