Mapscript - problem with binary grid (ADF)

Frank Warmerdam warmerdam at POBOX.COM
Sat Oct 30 11:59:02 EDT 2004


Marcin Zajączkowski 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?

Marcin,

In fact there is no way to let MapServer do "regular" rendering of a raster
layer if there are any classes.  If there are classes, they are used to color
the raster.

As I understand it, you were creating a class on the layer in an effort to
introduce a legend entry, is that right?  Lots of folks run into the same
issue and I think we need a different way of introducing legend entries.

I have add mapserver-users back into the address since some of this information
could be of use to others.

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