Skip to content

Commit c6803ff

Browse files
committed
re-document STYLES getmap requirement
1 parent ea3bf47 commit c6803ff

File tree

2 files changed

+62
-20
lines changed

2 files changed

+62
-20
lines changed

en/MIGRATION_GUIDE.txt

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
MapServer Migration Guide
77
*****************************************************************************
88

9-
:Last Updated: 2024-07-08
9+
:Last Updated: 2024-08-26
1010

1111
.. contents:: Table of Contents
1212
:depth: 2
@@ -54,7 +54,27 @@ MapServer 7.6 to 8.0 Migration
5454

5555
.. TIP::
5656
The MS4W community has produced many code examples of PHPNG (SWIG) MapScript:
57-
https://ms4w.com/trac/wiki/MigrationGuide5.x
57+
https://ms4w.com/trac/wiki/MigrationGuide5.x
58+
59+
- To follow the WMS specification, the `STYLES` parameter will now be required for
60+
GetMap requests. To bypass this requirement, you can set `wms_allow_getmap_without_styles`
61+
in your :ref:`WMS Server <wms_server>` mapfile, such as:
62+
63+
.. code-block:: mapfile
64+
65+
MAP
66+
...
67+
WEB
68+
METADATA
69+
"wms_title" "Populated Places"
70+
...
71+
"wms_allow_getmap_without_styles" "true"
72+
END #metadata
73+
END #web
74+
...
75+
END #map
76+
77+
5878

5979
- Several deprecated mapfile parameters have been removed, and will throw an
6080
error if you still specify them now. The following are specific examples

en/ogc/wms_server.txt

Lines changed: 40 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
:Author: Jeff McKenna
1111
:Contact: jmckenna at gatewaygeomatics.com
12-
:Last Updated: 2024-07-08
12+
:Last Updated: 2024-08-26
1313

1414
.. contents:: Table of Contents
1515
:depth: 3
@@ -123,28 +123,30 @@ ready with WMS/WFS support)
123123

124124
Example 1. On Unix:
125125

126-
::
126+
.. code-block:: bash
127127

128128
$ ./mapserv -v
129-
MapServer version 7.7-dev OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ
130-
SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS
131-
SUPPORTS=RSVG SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER
132-
SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT
133-
SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=GEOS SUPPORTS=PBF
134-
INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
129+
MapServer version 8.3-dev PROJ version 9.4 GDAL version 3.9 OUTPUT=PNG
130+
OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE
131+
SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=RSVG SUPPORTS=ICONV
132+
SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
133+
SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER
134+
SUPPORTS=OGCAPI_SERVER SUPPORTS=GEOS SUPPORTS=PBF INPUT=JPEG INPUT=POSTGIS
135+
INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE INPUT=FLATGEOBU
135136

136137
Example 2. On Windows:
137138

138-
::
139+
.. code-block:: bash
139140

140141
C:\ms4w> mapserv -v
141-
MapServer version 7.7.0-dev (MS4W 4.0.5) OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML
142-
SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO
143-
SUPPORTS=SVG_SYMBOLS SUPPORTS=SVGCAIRO SUPPORTS=ICONV SUPPORTS=FRIBIDI
144-
SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
145-
SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER
146-
SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS SUPPORTS=POINT_Z_M
147-
SUPPORTS=PBF INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
142+
MapServer version 8.3.0-dev (MS4W 5.0.0) PROJ version 9.5
143+
GDAL version 3.10 OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ
144+
SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS
145+
SUPPORTS=SVGCAIRO SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER
146+
SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER
147+
SUPPORTS=SOS_SERVER SUPPORTS=OGCAPI_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS
148+
SUPPORTS=GEOS SUPPORTS=PBF INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL
149+
INPUT=SHAPEFILE INPUT=FLATGEOBUF
148150

149151
.. index::
150152
pair: WMS Server; Mapfile
@@ -439,6 +441,13 @@ the WMS spec:
439441
"STYLES=" with an empty value to use default style(s). Named styles
440442
are also supported and are controlled by CLASS GROUP names in the
441443
mapfile.
444+
445+
.. note::
446+
447+
As of the MapServer 8.0 release, MapServer strictly requires
448+
the "STYLES=" parameter (unless SLD & SLD_BODY are specified).
449+
To avoid this requirement, you can set
450+
`"wms_allow_getmap_without_styles" "true"` in MAP.WEB.METADATA.
442451

443452
**SRS=namespace:identifier:** Spatial Reference System.
444453

@@ -1087,6 +1096,17 @@ wms_postcode, wms_country**
10871096
- *WMS TAG Name:* ContactAddress and family (WMS1.1.1, sect. 7.1.4.2)
10881097
- *Description:* Optional contact address information. If provided
10891098
then all six metadata items are required.
1099+
1100+
.. index::
1101+
triple: WMS; METADATA; wms_allow_getmap_without_styles
1102+
1103+
**wms_allow_getmap_without_styles**
1104+
1105+
.. versionadded:: 8.0
1106+
1107+
- *Description:* (Optional) "true" or "false". If true, the "STYLES="
1108+
GetMap parameter will not be required. If false (the default as of
1109+
MapServer 8.0) the "STYLES=" GetMap parameter will be required.
10901110

10911111
.. index::
10921112
triple: WMS; METADATA; wms_attribution_logourl_format
@@ -1149,11 +1169,12 @@ wms_postcode, wms_country**
11491169

11501170
**wms_bbox_extended:**
11511171

1172+
.. versionadded:: 6.0
1173+
11521174
- *Description:* (Optional) "true" or "false". If true, bounding
11531175
boxes are reported for all supported SRS / CRS in the capabilities
11541176
document. If false, only the bounding box of the first SRS / CRS is
11551177
reported.
1156-
- Introduced in 6.0.
11571178

11581179
.. index::
11591180
triple: WMS; METADATA; wms_contactelectronicmailaddress
@@ -1699,11 +1720,12 @@ Layer Object Metadata
16991720

17001721
**wms_bbox_extended:**
17011722

1723+
.. versionadded:: 6.0
1724+
17021725
- *Description:* (Optional) "true" or "false". If true, bounding
17031726
boxes are reported for all supported SRS / CRS in the capabilities
17041727
document. If false, only the bounding box of the first SRS / CRS is
17051728
reported.
1706-
- Introduced in 6.0.
17071729

17081730
.. index::
17091731
triple: WMS; METADATA; wms_dataurl_format

0 commit comments

Comments
 (0)