Thank you, it is fixed now. My apologies that I missed this.
I added the magic string <!-- MapServer Template --> to all the templates.
Is it possible to disable requests which have the server name as layers
parameter in a getmap request? Our server is called ADAGUC_WMS_Server.
Making a getmap request with this ID results in that all layers inside
this service are drawn in the same image, causing a high load. We have
many layers in our service. Of course some people want this feature, but
we want to disable it. I cannot find out how to do it, I saw that it is
possible to disable it for layers which are one level deeper (by using
"wms_layer_group"), but not for the first one.
The same is questioned before on the mailinglist with subject
"[mapserver-users] UMN MapServer - WMS GetCapabilities: Hide <name>
element in top layer to prevent loading all layers at once"...
The problem is that users should only use the deepest layer names, not
the group names, in a getmap request. The website
http://www.geopole.org/wms/ does getmap requests with the server name in
the layers parameters. This causes a high load because we have layers
for each day.
Best regards,
Maarten Plieger
Steve Lime schreef:
Correct, the fixes are easy:
1) for the symbol set, make sure the file is structured like so:
SYMBOLSET
...symbols...
END
2) for template error, add the magic template string <!-- MapServer
Template --> to the top of
the file
All should be well then.
Steve
On 4/1/2009 at 7:22 AM, in message
<[email protected]>, "Rahkonen
Jukka"
<[email protected]> wrote:
Hi,
Perhaps due to security fixes announced some days ago:
From: Steve Lime
Date: 2009-03-27 02:40:02 GMT (5 days, 9 hours and 39 minutes ago)
"MapServer 5.2.2 and 4.10.4 have been released. (Version 5.4 will
contain
all of these
fixes at the start and a beta 4 release will be available in a day or
so.)
The releases contain fixes for issues discovered in an audit of the
CGI by a
3rd party
(tickets #2939, #2941, #2942, #2943 and #2944). The issues are
detailed at:
http://trac.osgeo.org/mapserver/ticket/2939
http://trac.osgeo.org/mapserver/ticket/2941
http://trac.osgeo.org/mapserver/ticket/2942
http://trac.osgeo.org/mapserver/ticket/2943
http://trac.osgeo.org/mapserver/ticket/2944
Also provided is support for RFC-56 that addresses tightening up the
control
of
access to mapfiles and templates:
http://mapserver.org/development/rfc/ms-rfc-56.html"
-Jukka Rahkonen-
-----Alkuperäinen viesti-----
Lähettäjä: [email protected]
[mailto:[email protected]] Puolesta
Maarten Plieger
Lähetetty: 1. huhtikuuta 2009 12:10
Vastaanottaja: [email protected]
Aihe: [mapserver-users] MapServer 5.2.2 GetFeatureInfo
returns an error
Hi All,
We are updating our mapserver services from 5.2.0 to 5.2.2. I
have two issues doing this, one with SYMBOLSET and one with
TEMPLATE (for queries):
- The first is that the SYMBOLSET in my mapfile gives an error:
SYMBOLSET "/data1/mapserver/symbols/symbols35.sym"
When I do a getcapabilities I get:
"msLoadSymbolSet(): Unknown identifier. First token must be
SYMBOLSET, this doesn't look like a symbol file"
I do not need this symbolset, so I have uncommented it
- The second problem is GetFeatureInfo. GetFeatureInfo returns
this:
Content-type: application/vnd.ogc.se_xml isValidTemplate():
Web application error. Missing magic string,
../InfoQueryTemplates/SCIA_IMAP_L3.html doesn't look like a
MapServer template.
My template "SCIA_IMAP_L3.html" in the layer looks like this:
<b>xVMR_CH4</b><br>
longitude: [mapx]<br>
latitude: [mapy]<br>
vertical_mixing_ratio_of_methane_in_air: [value_0] ppb<br>
This template is configured in a LAYER object as: TEMPLATE
'../InfoQueryTemplates/SCIA_IMAP_L3.html'
This is the getfeatureinfo request for 5.2.2:
http://geoservices.knmi.nl/cgi-bin/SCIA__CONS_R___IMAP____L3_t
est_5.2.2.cgi?SERVICE=WMS&REQUEST=GetFeatureInfo&VERSION=1.1.1
&SRS=EPSG:4326&LAYERS=SCIA__CONS_R___IMAP____L3__20040101T0000
00_20040201T000000_0001_CH4&QUERY_LAYERS=SCIA__CONS_R___IMAP__
__L3__20040101T000000_20040201T000000_0001_CH4&BBOX=-180,-92.2
2011385199241,180,92.22011385199241&WIDTH=1581&HEIGHT=810&X=361&Y=>
250&FORMAT=image/gif&INFO_FORMAT=text/html&STYLES=&
This used to work well with version 5.2.0:
http://geoservices.knmi.nl/cgi-bin/SCIA__CONS_R___IMAP____L3.c
gi?SERVICE=WMS&REQUEST=GetFeatureInfo&VERSION=1.1.1&SRS=EPSG:4
326&LAYERS=SCIA__CONS_R___IMAP____L3__20040101T000000_20040201
T000000_0001_CH4&QUERY_LAYERS=SCIA__CONS_R___IMAP____L3__>
20040101T000000_20040201T000000_0001_CH4&BBOX=-180,-92.2201138
5199241,180,92.22011385199241&WIDTH=1581&HEIGHT=810&X=361&Y=250>
&FORMAT=image/gif&INFO_FORMAT=text/html&STYLES=&
Am I doing something wrong?
Thanks in advance,
Maarten Plieger
--
Maarten Plieger
KNMI, R&D Information and Observation Technology, De Bilt
(t) +31 30 2206330
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users
--
Maarten Plieger
KNMI, R&D Information and Observation Technology, De Bilt
(t) +31 30 2206330
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users