[Gdal-dev] 'no data' problem with GDAL/Mapserver

Frank Warmerdam warmerdam at pobox.com
Mon Dec 18 00:06:20 EST 2006


Jeff Bullard wrote:
> Mapserver is treating raster 'no data' values like they are all zero.
> The 'no data' pixels are being rendered in my [0 - 5) class.  The actual
> 'no data' value I am using is 200.  I have also tried 9999. 
> 
> gdalwarp -ot Int16 -srcnodata 9999 -dstnodata 200 -s_srs '+proj=lcc
> +lat_0=25N +lat_1=25N  +lon_0=95W +units=meters' -t_srs '+proj=latlong
> +ellps=WGS84  +datum=WGS84 +no_defs'
> NETCDF:'/usr/local/degrib/data/ndfd/conus/200612130500.nc:Astro' /usr/local/degrib/data/ndfd/conus/web/out.tif
> 
> Openev verifies that the gdalwarp operation was successful and the
> out.tif is good.  When I mouse over a 'no data' area openev tells me
> "200 [NODATA]".  But when I put this same out.tif into a mapfile layer
> the same pixels are rendered as a zero.

Jeff,

Could you file a bug against MapServer, and assigned directly to me about
this problem?  It is not evident to me why you would get the effect you
describe.  Ensure that the bug report includes everything I need to
reproduce the error quickly and easily (optimally with "shp2img").

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org




More information about the Gdal-dev mailing list