[mapserver-users] Problem with a GetFeatureInfo - info_format = text/html
Martin Ouellet
geomartino at gmail.com
Wed Nov 18 13:13:55 PST 2009
Hi,
I've got the current layer definition
NAME "ROLE_V_COMPLET"
CONNECTIONTYPE oraclespatial
CONNECTION "{5ACE86C1C85}"
PROCESSING "CLOSE_CONNECTION=DEFER"
DATA "shape FROM ROLE_V_COMPLET USING UNIQUE OBJECTID SRID 32198"
TYPE POINT
DUMP TRUE
STATUS ON
TEMPLATE "http://geomsp.msp.gouv.qc.ca/communs/todo2.html"
TOLERANCE 10
MAXSCALE 8000
MINSCALE 1
METADATA
"wms_group_title" "MAMR-Rôle d'évaluation"
"wms_name" "ROLE_V_COMPLET"
"wms_title" "Rôle"
"wms_keywordlist" ""
"wms_server_version" "1.1.1"
"wms_abstract" "Rôle (1/8 000) (Source : MAMR)"
"wms_srs" "EPSG:32198 EPSG:900913"
"wms_extent" "-1100000 -23500 1100000 2253500"
"wms_metadataurl_format" "text/html"
"wms_feature_info_mime_type" "text/html"
"gml_feature_info_mime_type" "text/html"
"gml_include_items" "all"
"wms_include_items" "all"
"wms_dataurl_format" "text/html"
"ows_metadataurl_format" "text/html"
"ows_include_items" "all"
END
PROJECTION
"init=epsg:32198"
END
CLASS
NAME "ROLE_V_COMPLET"
STYLE
SYMBOL 'circle'
COLOR 65 105 225
SIZE 5
END
END
Here my very simple template (todo2.html) which contain
<table>
<tr>
<td>
[DATE_PRODUCTION]
</td>
</tr>
<table>
And then, my GetFeatureInfo call
http://myserver/cgi-wms/gouvqc?REQUEST=GetFeatureInfo&SERVICE=WMS&VERSION=1.1.1&LAYERS=ROLE_V_COMPLET&STYLES=default&INFO_FORMAT=text/html&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG:32198&BBOX=-212116.638237514,316950.878824665,-212070.655690493,316990.471589178&WIDTH=770&HEIGHT=663&QUERY_LAYERS=ROLE_V_COMPLET&X=298&Y=326
I receive this response:
[DATE_PRODUCTION] -> mapserver dont seem to replace the variable with the
query value
If I just change the info_format for text/plain or GML, it's working
perfectly (so Imy connection and other parameter seem OK)
http://myserver/cgi-wms/gouvqc?REQUEST=GetFeatureInfo&SERVICE=WMS&VERSION=1.1.1&LAYERS=ROLE_V_COMPLET&STYLES=default&INFO_FORMAT=text/plain&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG:32198&BBOX=-212116.638237514,316950.878824665,-212070.655690493,316990.471589178&WIDTH=770&HEIGHT=663&QUERY_LAYERS=ROLE_V_COMPLET&X=298&Y=326
I'am using MapServer 5.4.2 , Any advice?
MartinO
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20091118/0282df71/attachment.htm>
More information about the MapServer-users
mailing list