Class definition looks like this:

LAYER
        NAME total_co2_90.tif
        TYPE RASTER
        STATUS DEFAULT
        DATA total_co2_90.tif
        PROJECTION
                'init=epsg:4326'
        END
END


Normally, when dealing with shapefiles, I have something like this:

CLASS
        NAME 'Units: Teragrams CO2 Equivalent'
        EXPRESSION ([value]=-110003)
        TEMPLATE 'units as title in legend'
END  # CLASS                            
CLASS NAME '0 to 111'
        EXPRESSION ([value]<=111)
        COLOR 255 255 178
        .....


As I have many different raster files, it would be somewhat of a hassle to hard-code their legends (in mapfile form). These legends are loaded separately as GIFs.

I just want to have an additional info displayed, the units, which I would like to display dynamically, as they can be expressed in different languages.

Stef


On Jul 23, 2008, at 5:53 PM, Steve Lime wrote:

Sorry, I mean in terms of a mapfile definition.

Steve

On 7/23/2008 at 2:22 AM, in message
<[EMAIL PROTECTED]>, Stefan Schwarzer
<[EMAIL PROTECTED]> wrote:
What do your faked classes look like?

Looks like this:

http://www.pixentral.com/show.php?picture=1wRKCRDAq8lKdLJzzaCYoLHHJeFUCu0

That's for the statistical data. The TIF data would display a pre-
prepared GIF legend, plus the UNITS info.

I would like to add information about the Units of the selected
variable into the legend. When using vector data, this wasn't really
the problem. I kind of faked empty classes to insert that
information.

But now, I wonder how to achieve this when using TIF images. As the
TIF is already color coded and regrouped into a couple of classes,
using faked CLASS values, results in the display of zero pixels -
nothing is being displayed.

Is there another way to "slip" in some information into the legend?
Or
is the HTML legend the only alternative?


_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to