ESRI ASCII GRID format

Frank Warmerdam warmerdam at POBOX.COM
Tue Feb 21 09:19:35 EST 2006


Francesco Sozzi wrote:
> Hi all,
>  
> Anybody knows if are there any way to show ESRI ASCII GRID FILES with 
> mapserver?

Francesco,

They should work "out of the box" if you have GDAL support built in.  Just
put the name of the grid file in your DATA statement like for any raster file.

Now, there may be an additional issue.  ESRI ASCII Grid files are often not
8bit.  That is the raster values are often outside the range 0-255.  If this
is the case, special issues around scaling the values for display apply.  You
should read the Raster Access HOWTO to know more about how to deal with this
though the brief solution is often fine to get something on the screen:

The brief solution is add the following in your raster layer.

   PROCESSING "SCALE=AUTO"

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