-
-
Notifications
You must be signed in to change notification settings - Fork 360
/
ows_wms_rootlayer_name_empty.map
117 lines (103 loc) · 2.28 KB
/
ows_wms_rootlayer_name_empty.map
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# Test WMS rootlayer_name_empty
#
# REQUIRES: SUPPORTS=WMS
#
# The following tests exists primarily to test the ability of enabling/disabling
# WMS service (see https://github.com/mapserver/mapserver/issues/5404).
#
# RUN_PARMS: ows_wms_rootlayer_name_empty_capabilities.xml [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WMS&REQUEST=GetCapabilities" > [RESULT_DEVERSION]
# Results expected
# getcapabilities: root <Layer> element does not emit <Name> element
MAP
NAME WMS_TEST
SHAPEPATH ./data
WEB
METADATA
"wms_onlineresource" "http://localhost/path/to/ows?"
"ows_enable_request" "DescribeLayer"
"wms_enable_request" "!GetCapabilities !GetFeatureInfo GetMap"
"wms_rootlayer_name" ""
END
END
PROJECTION
"init=epsg:4326"
END
LAYER
NAME road
DATA road
TEMPLATE "ttt"
METADATA
"wms_title" "road"
"wms_description" "Roads of I.P.E."
"wms_srs" "EPSG:43204"
"wms_include_items" "all"
"wms_ROAD_ID_alias" "ROAD_NAME"
"ows_enable_request" "GetFeatureInfo"
"wms_enable_request" "!GetCapabilities !GetMap"
"wms_layer_group" "/roadgroup"
END
TYPE LINE
STATUS ON
PROJECTION
"init=./data/epsg2:42304"
END
CLASSITEM "Name_e"
CLASS
NAME "Roads"
SYMBOL 0
COLOR 220 0 0
END
END # Layer
LAYER
NAME road2
DATA road
TEMPLATE "ttt"
METADATA
"wms_title" "road"
"wms_description" "Roads of I.P.E."
"wms_srs" "EPSG:43204"
"wms_include_items" "all"
"gml_ROAD_ID_alias" "ROAD_NAME"
"ows_enable_request" "GetFeatureInfo"
"wms_enable_request" "GetCapabilities !GetMap"
"wms_layer_group" "/roadgroup"
END
MINSCALEDENOM 1500
TYPE LINE
STATUS ON
PROJECTION
"init=./data/epsg2:42304"
END
CLASSITEM "Name_e"
CLASS
NAME "Roads"
SYMBOL 0
COLOR 220 0 0
END
END # Layer
LAYER
NAME road3
DATA road
TEMPLATE "ttt"
METADATA
"wms_title" "road"
"wms_description" "Roads of I.P.E."
"wms_srs" "EPSG:43204"
"gml_include_items" "all"
"ows_enable_request" "GetFeatureInfo"
"wms_enable_request" "!GetCapabilities GetMap"
"wms_layer_group" "/roadgroup"
END
TYPE LINE
STATUS ON
PROJECTION
"init=./data/epsg2:42304"
END
CLASSITEM "Name_e"
CLASS
NAME "Roads"
SYMBOL 0
COLOR 220 0 0
END
END # Layer
END # Map File