Opened 20 years ago
Last modified 15 years ago
#784 new defect
error "Malformed template name" at nquery with template statement in layer section — at Initial Version
Reported by: | Owned by: | sdlime | |
---|---|---|---|
Priority: | high | Milestone: | 6.0 release |
Component: | MapServer CGI | Version: | 4.0 |
Severity: | normal | Keywords: | |
Cc: | bfraser@… |
Description
I have defined some layers in my map file with the same name (to be shown simultaneously) but with different template names. These layers represent bore hole locations in different counties in Germany. If I do a query for bore hole data of a (single) layer with mapserver 4.0 (cgi application, mode=nquery) with a template defined in the layer section I get often correct results but sometimes following error messages: ... Content-type: text/html msReturnPage(): Web application error. Malformed template name. msyyparse(): Expression parser error. parse error msyyparse(): Expression parser error. parse error ... together with regular results. If I specify the template object in all classes of the layer, the mapserver nquery is done correctly. Appended is a code snippet from my map file: ... more Layers ... # LAYER GROUP "wells" NAME "BO" METADATA LEGEND_ORDER "0" END DATA "shapes\bo_ni" TYPE POINT STATUS OFF TOLERANCE 7 TOLERANCEUNITS PIXELS MAXSCALE 200000 SYMBOLSCALE 100000 CLASSITEM "DEPTH" CLASS NAME "Depth: < 5m" EXPRESSION ([DEPTH] <= 5.) STYLE SYMBOL circle COLOR 0 255 0 OUTLINECOLOR 0 0 0 SIZE 8 MINSIZE 4 MAXSIZE 8 END # TEMPLATE t_bo_ni.htm # application works correctly if commented out END CLASS NAME "Depth: 5 to 20m" EXPRESSION ([DEPTH] > 5. AND [DEPTH] <= 20.) STYLE SYMBOL circle COLOR 51 204 255 OUTLINECOLOR 0 0 0 SIZE 8 MINSIZE 4 MAXSIZE 8 END # TEMPLATE t_bo_ni.htm # see above END CLASS NAME "Depth: 20 to 50m" EXPRESSION ([DEPTH] > 20. AND [DEPTH] <= 50.) STYLE SYMBOL circle COLOR 255 102 255 OUTLINECOLOR 0 0 0 SIZE 8 MINSIZE 4 MAXSIZE 8 END # TEMPLATE t_bo_ni.htm # see above END CLASS NAME "Depth: 50 to 100m" EXPRESSION ([DEPTH] > 50. AND [DEPTH] <= 100.) STYLE SYMBOL circle COLOR 255 0 0 OUTLINECOLOR 0 0 0 SIZE 8 MINSIZE 4 MAXSIZE 8 END # TEMPLATE t_bo_ni.htm # see above END CLASS NAME "Depth: > 100m" EXPRESSION ([DEPTH] > 100.) STYLE SYMBOL circle COLOR 255 204 0 OUTLINECOLOR 0 0 0 SIZE 8 MINSIZE 4 MAXSIZE 8 END # TEMPLATE t_bo_ni.htm # see above END TEMPLATE t_bo_ni.htm # sometimes nquery results in error message "Malformed template name." END # layer Wells (Lower Saxony, Germany) # ...
Note:
See TracTickets
for help on using tickets.