<div>Hi all,</div>
<div>I&#39;m&nbsp;a new user of Mapserver. I&#39;m working with MS4W (version 2.2.3) via CGI and I&#39;m having troubles with queries on classified rasters. Queries on non-classified rasters work fine, while in cases of classified ones (already tried several formats: img, bil, tif, png) I get the following error:
</div>
<div><span class="q">&nbsp;</span></div>
<div>msDrawShape(): General error message. Unknown layer type.&nbsp;&nbsp;</div>
<div>&nbsp;</div><span></span>
<div>If I comment CLASS&nbsp;definitions the same query shows me correct results (one or more pixels queried,&nbsp;according to the set tolerance, but of course no information on [class] value).</div>
<div>&nbsp;</div>
<div>I post an extract of my mapfile, with the definition of&nbsp;the raster layer and one of its classes. Maybe I&#39;m doing something wrong with class template (and layer header/footer ...). </div>
<div>&nbsp;</div>
<div>Hoping to receive a little help ... and sorry for my English!</div>
<div>&nbsp;</div>
<div>Marco (Italy)</div>
<div>&nbsp;</div>
<div>--- --- --- --- ---</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div><font size="2">
<p>LAYER # Classificazione vegetazione 2000</p>
<blockquote dir="ltr" style="MARGIN-RIGHT: 0px">
<p>NAME class_2000</p>
<p>DATA &quot;2000/final_after_merging.bil&quot;</p>
<p>STATUS OFF</p>
<p>TYPE RASTER</p>
<p>OFFSITE 0 0 0</p>
<p>GROUP &quot;Uso e copertura del suolo&quot;</p>
<p>TOLERANCE 0</p>
<p>TOLERANCEUNITS pixels</p>
<p></p>
<p>PROJECTION</p>
<blockquote dir="ltr" style="MARGIN-RIGHT: 0px">
<p>&quot;init=epsg:4326&quot; </p></blockquote>
<p>END</p>
<p>METADATA</p>
<blockquote dir="ltr" style="MARGIN-RIGHT: 0px">
<p>TITOLO &quot;Classificazione vegetazione da satellite - Anno 2000&quot;</p>
<p>ORDINE &quot;0044&quot;</p></blockquote>
<p>END</p>
<p></p>
<p>HEADER &quot;class2000_header.html&quot;</p>
<p>FOOTER &quot;class2000_footer.html&quot;</p>
<p></p>
<p>CLASSITEM &quot;[pixel]&quot; </p>
<p>CLASS</p>
<blockquote dir="ltr" style="MARGIN-RIGHT: 0px">
<p>NAME &quot;Latifoglie (pure o dominanti)&quot; </p>
<p>EXPRESSION ([pixel] = 2) </p>
<p>STYLE</p>
<blockquote dir="ltr" style="MARGIN-RIGHT: 0px">
<p>COLOR 0 255 0</p></blockquote>
<p>END</p>
<p>TEMPLATE &quot;class_query.html&quot;</p></blockquote>
<p>END</p></blockquote>
<p>END # Fine raster classificazione vegetazione 2000</p></font></div>