[mapserver-users] Nodata in raster queries

Boss, Ken (DNR) Ken.Boss at state.mn.us
Mon Mar 14 15:23:32 EDT 2011


I have a DEM that I am using with mapserver 5.6 to service queries for an elevation value at a given point.  The DEM contains significant offsite/nodata areas.  From gdalinfo:

Band 1 Block=19063x1 Type=Int16, ColorInterp=Gray
   NoData Value=-32768

If I open the image in QGIS and use the identify tool over a nodata area, it says:

  Band 1  null (no data)

But when I run a mapserver point query at the same point, the value returned is -32768.  Is there a way to configure mapserver to return something more like null for raster nodata areas?

Thanks,

--Ken Boss
  MN DNR



More information about the mapserver-users mailing list