Hello,
I defined a layer as following
LAYER
NAME "clc_00_l1"
STATUS ON
METADATA
"wms_title" "Landcover - Level1"
"wms_abstract" "landcover - landuse layer."
"wms_srs" "EPSG:4623"
END
TYPE RASTER
DATA "landcover/clc_00.tif"
MAXSCALE 900000000
MINSCALE 5
TRANSPARENCY 100
TEMPLATE "../templates/clc-body.html"
HEADER "../templates/clc-header.html"
FOOTER "../templates/clc-footer.html"
CLASSITEM "[pixel]"
CLASS
NAME 'Artificial Surface'
EXPRESSION (([pixel] > 0) and ([pixel] <= 11))
COLOR 255 25 150
END
CLASS
NAME 'Agricultural Areas'
EXPRESSION (([pixel] > 11) and ([pixel] <= 22))
COLOR 255 255 38
END
CLASS
NAME 'Forest and semi-natural areas'
EXPRESSION ([pixel] > 22 and [pixel] <= 34)
COLOR 110 190 110
END
CLASS
NAME 'Wetlands'
EXPRESSION ([pixel] > 34 and [pixel] <= 39)
COLOR 100 60 240
END
CLASS
NAME 'Water bodies'
EXPRESSION ([pixel] > 29 and [pixel] <= 44)
COLOR 100 240 245
END
END
the raster file is a compressed tif generated using GDAL utils.
When I try a WMS GetFeatureInfo I got the following error:
<ServiceExceptionReport version="1.1.1">
<ServiceException>
msDrawShape(): General error message. Unknown layer type.
</ServiceException>
</ServiceExceptionReport>
Please can you help me. What's wrong with my layer?
Maybe the definition is not complete?
thx
--
------------------------------------------------
Giorgio Libertà
European Commission - DG Joint Research Center
Institute for Environment and Sustainability
Land Management & Natural Hazards Unit
TP 261, via Fermi
Ispra (VA), 21020 Italy
e-mail: [EMAIL PROTECTED]
Phone: +39 0332 785309
Fax: +39 0332 789074
Mobile: +39 340 2566207
------------------------------------------------
The views expressed are purely those of the writer and may not in
any circumstances be regarded as stating an official position of
the European Commission.