Mapserver and templetes in xml format
Steve Lime
steve.lime at DNR.STATE.MN.US
Fri May 27 19:25:44 PDT 2005
You might try a slightly newer version of MapServer. I ran into the same issue outputting SVG via templates so I thought I surpressed the output of the version string for queries. I'll check the source to be sure.
Steve
>>> Piero Cavalieri <piero.cavalieri at HEIDI.IT> 05/27/05 3:00 AM >>>
Hi all,
I'm using mapserver in cgi mode, with .NET framework.
I build query String from user interface. Send it to the cgi using
HttpWebRequest class and parse the response with HttpWebResponse.
The template is very simple, ex:
[img]
[mapwidth]
[mapheight]
..
..
Variables are put in protected variables (in code behind), so then I can
use them in the aspx Page.
This seems to works fine (both for browse and query mode), however I noticed
that the first line are additional info from Mapserver, ex:
<!-- MapServer version 4.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER
SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT
SUPPORTS=WCS_SERVER INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE -->
This prevent me from using an xml document for template file (as I would
like to try instead of the html template file). Is there a way to remove
info above, in the cgi response (without recompile sources) ?
Many thanks
Piero
More information about the MapServer-users
mailing list