Permalink
Browse files

Allows floating point NoData/NULLVALUEs for floating point images.

  • Loading branch information...
George Chang authored and tbonfort committed Nov 6, 2013
1 parent bdaf0cc commit 339e007e8a3ce7ca70bdad8c33e06074b0ef5f69
Showing with 1 addition and 1 deletion.
  1. +1 −1 maputil.c
View
@@ -1602,7 +1602,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 339e007

Please sign in to comment.