Can't view Envi HDR file...

Frank Warmerdam warmerdam at POBOX.COM
Fri Aug 13 12:21:20 PDT 2004


Eduardo Patto Kanegae wrote:

> Band 1 Block=8401x1 Type=Int16, ColorInterp=Undefined
>   Description = Mosaic (Band 1)
> -------
>
> Using OpenEV 1.80 I got a view like shown at the 'dem-openev.png' attached.
>
> But using MapServer I got only an image like shown in
> 'dem-mapserver.png' attached.
>
> My mapfile is:
>
> MAP
>     EXTENT -183604.500 -86401.500 -158401.500 -64798.500
>     IMAGETYPE        dem
>     SIZE            736 632
>
>     OUTPUTFORMAT
>         NAME dem
>         DRIVER "GD/PNG"
>         IMAGEMODE RGB
>     END
>
>     LAYER # imagem
>         NAME        "imagem"
>         TYPE        RASTER
>         DATA        "C:\local\mapas\envi\MOSAICOHGT"
>     END
>
> END

Eduardo,

The issue here is that it is 16 bit data.  By default MapServer just reads
non-8bit data by setting all values greater than 255 to 255 and all values
less than 0 to 0.  I think you will want auto-scaling.

Try adding the following line to your raster layer definition:

  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