MS4W: Queries on classified rasters

Frank Warmerdam warmerdam at POBOX.COM
Fri Apr 20 09:16:21 EDT 2007


Marco Cerruti wrote:
> Hi all,
> I'm a new user of Mapserver. I'm working with MS4W (version 2.2.3) via 
> CGI and I'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:
>  
> msDrawShape(): General error message. Unknown layer type.  
>  
> If I comment CLASS definitions the same query shows me correct results 
> (one or more pixels queried, according to the set tolerance, but of 
> course no information on [class] value).
>  
> I post an extract of my mapfile, with the definition of the raster layer 
> and one of its classes. Maybe I'm doing something wrong with class 
> template (and layer header/footer ...).
>  
> Hoping to receive a little help ... and sorry for my English!

Marco,

I think this is a bug in mapserver.  That I did not touch all the
parts of the code I should have when implementing raster query support.

Could you boil this down to a minimum test to demonstrate the problem
and submit a bug report?  If I can easily reproduce the problem with
your test data, I'll try and fix it fairly promptly.

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    | President OSGeo, http://osgeo.org



More information about the mapserver-users mailing list