4.8 query results problem
Didrik Pinte
dpinte at ITAE.BE
Mon Apr 3 00:33:45 PDT 2006
Hi,
The following layer and template has been defined under a 4.4 server and
works perfectly well. Using it on a 4.8 server, it does work when there
is an empy resultset but it displays nothing when they are results.
Does anybody know how to debug the problem ? The problem is really
strange, i have nothing in the debug output ...
Didrik
The query is done with the following url :
http://localhost/cgi-bin/mapserv?img.x=150&img.y=96&mode=nquery&layers=moved&zoomdir=0&zoomsize=2&imgxy=250.0+150.0&mapsize=500+300&imgext=343724.016875+1797285.010125+406223.983125+1834784.989875&map=%2Fvar%2Fwww%2Fmapserver%2Fgeneral.map
--------------------------------------------------------------------------
LAYER
NAME "moved"
CONNECTION "user=xxx password=xxx dbname=xxx
host=localhost port=5432"
CONNECTIONTYPE postgis
DATA "cartopoint from geotable"
STATUS ON
TYPE POINT
HEADER "templates/table_header.html"
FOOTER "templates/table_footer.html"
TOLERANCE 10
TEMPLATE "templates/table_data.html"
CLASS
NAME "Moved"
EXPRESSION ( '[moved]' = 't' )
COLOR 255 0 0
OUTLINECOLOR 255 0 0
SIZE 10
SYMBOL "circle"
END
CLASS
NAME "Not moved"
EXPRESSION ( '[moved]' = 'f' )
COLOR 0 255 0
OUTLINECOLOR 0 255 0
SIZE 10
SYMBOL "circle"
END
PROJECTION
"init=epsg:4326"
END
END
table_data.html template :
--------------------------------------------------------------------------
<TR class="odd">
<td align=left>[clientid]</td><td
align=center>[level]</td><td align=center><SCRIPT language="JavaScript">
<!--
printBool('[moved]')
-->
</SCRIPT></td> <td align=center> <SCRIPT language="JavaScript">
<!--
printBool('[varied]')
--></SCRIPT></td> <td align=center>[senddtg] </td><td
align=left>[latitude] - [longitude]</td>
</TR>
--------------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 191 bytes
Desc: Ceci est une partie de message num?riquement sign?e
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060403/7bf1ae5b/attachment.sig>
More information about the MapServer-users
mailing list