Skip to content

Commit 82774ee

Browse files
committed
re-document STYLES getmap requirement
1 parent 071f845 commit 82774ee

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-06-06
9+
:Last Updated: 2024-08-26
1010

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

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

5676
- Several deprecated mapfile parameters have been removed, and will throw an
5777
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: 2022-09-05
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

@@ -1073,6 +1082,17 @@ wms_postcode, wms_country**
10731082
- *WMS TAG Name:* ContactAddress and family (WMS1.1.1, sect. 7.1.4.2)
10741083
- *Description:* Optional contact address information. If provided
10751084
then all six metadata items are required.
1085+
1086+
.. index::
1087+
triple: WMS; METADATA; wms_allow_getmap_without_styles
1088+
1089+
**wms_allow_getmap_without_styles**
1090+
1091+
.. versionadded:: 8.0
1092+
1093+
- *Description:* (Optional) "true" or "false". If true, the "STYLES="
1094+
GetMap parameter will not be required. If false (the default as of
1095+
MapServer 8.0) the "STYLES=" GetMap parameter will be required.
10761096

10771097
.. index::
10781098
triple: WMS; METADATA; wms_attribution_logourl_format
@@ -1135,11 +1155,12 @@ wms_postcode, wms_country**
11351155

11361156
**wms_bbox_extended:**
11371157

1158+
.. versionadded:: 6.0
1159+
11381160
- *Description:* (Optional) "true" or "false". If true, bounding
11391161
boxes are reported for all supported SRS / CRS in the capabilities
11401162
document. If false, only the bounding box of the first SRS / CRS is
11411163
reported.
1142-
- Introduced in 6.0.
11431164

11441165
.. index::
11451166
triple: WMS; METADATA; wms_contactelectronicmailaddress
@@ -1685,11 +1706,12 @@ Layer Object Metadata
16851706

16861707
**wms_bbox_extended:**
16871708

1709+
.. versionadded:: 6.0
1710+
16881711
- *Description:* (Optional) "true" or "false". If true, bounding
16891712
boxes are reported for all supported SRS / CRS in the capabilities
16901713
document. If false, only the bounding box of the first SRS / CRS is
16911714
reported.
1692-
- Introduced in 6.0.
16931715

16941716
.. index::
16951717
triple: WMS; METADATA; wms_dataurl_format

0 commit comments

Comments
 (0)