Novice help with raster

Frank Warmerdam warmerdam at POBOX.COM
Wed Oct 27 22:31:45 EDT 2004


Brent Wood wrote:

> LAYER
>   NAME test_geo
>   DATA "/home/baw/wgtn_topo/test_geo.tif"
>   TYPE RASTER
>   STATUS DEFAULT
>   CLASS
>     NAME "Test_geo"
>     # TEMPLATE
>   END
> END

Brent,

Thee is nothing wrong with the file.  The problem is that by including
a CLASS statement in the layer definition the whole rendering process
switches to a classification based scheme.  I am not sure why you even see
the image in greyscale.  There must be some sort of fallback colortable.
But as soon as numclasses>0 the renderer switches to using only one band,
and a colormap to render with.

You get a different report with PROCESSING "BANDS=1,2,3" because the rendering
code recognises an inconsistency between specifically requesting 3 bands, and
asking to use image classification (single band only).  In the default case
it just ignores extra bands and uses the first.

So, just blow that CLASS away.  What was it intended to accomplish?  Populate
a legend or something?

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