CLASS in raster layer (Was: Mapscript - problem with binary grid (ADF))
Bart van den Eijnden
bartvde at XS4ALL.NL
Sat Oct 30 09:04:10 PDT 2004
Hi,
did you already read the Raster HOWTO document?
http://mapserver.gis.umn.edu/doc42/raster-howto.html
In short, here is an example:
CLASSITEM "[pixel]"
CLASS
EXPRESSION ([pixel] < 64)
NAME "less than 64"
COLOR 0 0 0
END
CLASS
EXPRESSION ([pixel] >= 64 AND [pixel] < 128)
NAME "64 to 128"
COLOR 255 0 0
END
Best regards,
Bart
On Sat, 30 Oct 2004 17:54:37 +0200, Marcin Zajączkowski <mszpak at WP.PL>
wrote:
> Dnia 2004-10-30 00:04, Użytkownik Frank Warmerdam napisał:
> (...)
>> Other than that, I would suggest reducing your mapscript to just load
>> the
>> file and render it.
>
> Thanks for reply. In fact this post was written by man who works with
> mapscript in our project. He was unable to subscribe mapserver mailing
> list (I had some problems too). Unfortunately this guy moved for few
> days and now it's my problem to make it works.
> As You adviced I prepared small .map file and mapscript is able to
> display grids. After next few hours I discovered that the problem is
> with CLASS in raster layer. When there is created any CLASS, raster
> layer isn't displayed (in fact it's displayed in white). When I change
> COLOR then whole layer has COLOR color.
> To prepare legend (with ability to turn on/off layers) is used
> layer->numclasses what is logical, because some vector layers has few
> classes which has to be showed separate.
>
> So my actual question is: how can I create class in raster layer and
> keep ability to display this layer on map?
>
> Regards
> Marcin
>
--
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
More information about the MapServer-users
mailing list