[mapserver-users] Mapserver serving up DEM

Frank Warmerdam warmerdam at pobox.com
Thu Sep 16 10:41:21 PDT 2010


Matt Fair wrote:
>   OUTPUTFORMAT
>     NAME "GEOTIFFINT16"
>     DRIVER "GDAL/GTiff"
>     MIMETYPE "image/tiff"
>     IMAGEMODE "INT16"
>     EXTENSION "tif"
>   END
...
> This produces a white image, meaning it is probably only reading 8 
> bits.  If I add  PROCESSING "SCALE=AUTO", then the values are not maxed 
> out at 255, but vary based on the size of data I am requesting.  So this 
> won't work either because in my mapping software, as I request smaller 
> and smaller patches, the elevation data is scaled really weird and is 
> not consistent.
> 
> Is there anything I am missing to get 16 bit USGS DEM data to be 
> distributed via Mapserver?

Matt,

Your setup seems reasonable.  Can you provide me an example of an output
file produced by MapServer?  I'd like to examine it to ensure it is being
produced matching the output format declaration.

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    | Geospatial Programmer for Rent




More information about the MapServer-users mailing list