[mapserver-users] 5.6.1 - GetFeatureInfo - template processing
Ted Spradley
tspradley at snoogems.com
Thu Jan 14 11:50:19 PST 2010
Ted Spradley wrote:
>
> Hi everyone,
>
> In version 5.4.1 the following GetFeatureInfo request url produced a table
> described by templates for the
> layer 'bldg_query' described below. With ver 5.6.1, Mapserver outputs
> only the template from the
> mapfile's WEB object (with no query results or image).
>
> Do you have any idea of changes to make? To the request format? To the
> mapfile?
>
Well Ted, re-read the migration guide carefully and think about the
implications of the following:
>From the migration guide for 5.6.1:
> -------------------------------------------------
> Change of mime-type for the imagemap outputformat
> -------------------------------------------------
>
> RFC 36 added support for templated outptformats, but this new feature
> was not available for WMS GetFeatureInfo ouptut (see ticket #3024).
> In MapServer 5.6 this has been resolved by implementing lookup of output
> formats for query templates by mime-type. However this caused a conflict
> for the text/html mime-type between the actual text/html query
> templates and the preconfigured imagemap outputformat which also used the
> text/html mime-type.
>
> In order to resolve this conflict, the mime-type of the imagemap
> outputformat
> has been changed to "text/html; driver=imagemap". This is unlikely to
> cause
> much side-effects to existing applications, but the change is documented
> here
> just in case.
>
Sorry guys! I left out part of the map file that I didn't think was
relevant but definitely is. I had an
OUTPUTFORMAT that I was using for a related, but different part of the
application.
OUTPUTFORMAT
NAME 'selected_parcel'
DRIVER 'TEMPLATE'
MIMETYPE 'text/html'
FORMATOPTION 'FILE=selected_parcel.tmpl'
END
Changing
MIMETYPE 'text/html' to MIMETYPE 'text/html; driver=imagemap'
resolved the issue. Now our GetFeatureInfo request queries return in the
order given in the
WMS LAYERS parameter!
Have a good day all!
-----
Thank you,
Ted S
MapServer version 5.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV
SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS
INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
Linux/Fedora7
--
View this message in context: http://n2.nabble.com/5-6-1-GetFeatureInfo-template-processing-tp4393728p4394911.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
More information about the MapServer-users
mailing list