Ticket #1842 (closed defect: fixed)
msDrawShape(): General error message. Unknown layer type
| Reported by: | Henrik.Stutz@… | Owned by: | warmerdam |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.0 release |
| Component: | GDAL Support | Version: | 4.8 |
| Severity: | normal | Keywords: | raster query |
| Cc: | sdlime, dmorissette, tomkralidis |
Description (last modified by warmerdam) (diff)
Hi Frank,
I'm trying to set up raster querying on Mapserver 4.8.3. When
"mode=query" is enabled the following error occurs: "msDrawShape():
General error message. Unknown layer type".
Does anyone has an idea how to solve this problem?
Cheers and thanks,
Henrik
http://localhost/cgi-bin/mapserv_483?map=%2Fvar%2Fwww%2Fhtml%2Fperl_test
%2FBalticBoundary.map&map_web_imagepath=%2Fvar%2Fwww%2Fhtml%2Ftmp%
2F&map_web_imageurl=%2Ftmp%2F&savequery=true&imgext=245990.225000
+6427447.275000+4190855.225000
+10372312.275000&layer=chlaYYMMDDsat&program=%2Fcgi-bin%
2Fmapserv_483&img.x=168&img.y=124&zoomsize=3&mode=query
^ ^
| |
----------------mapfile----------
NAME Boundary
STATUS ON
SIZE 600 600
WEB
IMAGEPATH "/var/www/html/perl_test/tmp/"
IMAGEURL "/tmp/"
TEMPLATE "template.html"
END
QUERYMAP
STATUS ON
STYLE SELECTED
END
LAYER
NAME baltic_mask
TYPE RASTER
STATUS DEFAULT
DATA /opt/MODIS/GIS/2006g6/BalticMerc07/PERMANENT/cellhd/baltic_mask
TOLERANCE 3
TOLERANCEUNITS PIXELS
CLASS
NAME "Baltic_mask"
TEMPLATE quadtemplate.html
OUTLINECOLOR 255 0 0
END
END
LAYER
NAME chlaYYMMDDsat
TYPE RASTER
STATUS OFF
TRANSPARENCY 50
DATA /opt/MODIS/GIS/2006g6/BalticMerc/T/cellhd/chlasat
TOLERANCE 3
TOLERANCEUNITS PIXELS
CLASS
NAME "Chlorophyll-a"
OUTLINECOLOR 255 0 0
TEMPLATE quadtemplate.html
END
END
-------template.html-----------
<html>
<head>
<title>MapServer </title>
</head>
<form method=GET action=[program]><input type="hidden" name="map"
value="[map]">
<input type="hidden" name="map_web_imagepath"
value="[map_web_imagepath]">
<input type="hidden" name="map_web_imageurl"
value="[map_web_imageurl]">
<input type="hidden" name="savequery" value="true">
<input type="hidden" name="imgxy" value="299.5 299.5">
<input type="hidden" name="imgext" value="[mapext]">
<input type="hidden" name="layer" value="chlaYYMMDDsat" >
<input type="hidden" name="program" value="[program]">
.
.
.
Select quad<input type="radio" name="mode" value="query"><br>
<!-- The map -->
<input type="image" name="img" src="[img]" border="0" >
.
.
.
</form>
</body>
</html>
------quadtemplate.html----------------------------
<html>
<head>
<title>MapServer Test</title>
</head>
<body bgcolor="#ffffff">
<br>
<font size=+2 face=arial,helvetica>You selected the
<b>[TILE_NAME]</b> Quadrangle</font>
<p>
<img src="[img]">
<tr>
<td>[lrn]</td>
<td>[PIN]</td>
</tr>
<p>
<a href="javascript:history.back()">return to map...</a>
</body>
</html>
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

