Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion en/mapfile/class.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
CLASS
*****************************************************************************

:Last Updated: 2025-08-18

.. index::
pair: CLASS; BACKGROUNDCOLOR
:name: mapfile-class-backgroundcolor
Expand Down Expand Up @@ -93,7 +95,14 @@ EXPRESSION [string]
.. index::
pair: CLASS; GROUP
:name: mapfile-class-group


FALLBACK [true|false]
Specifies whether the class should act as a fallback class.
A fallback class is applied if and only if none of the previously
defined classes has been applied. This is similar in concept to
the :ref:`sld` ElseFilter.
.. versionadded:: 8.5

GROUP [string]
Allows for grouping of classes. It is only used when a
`CLASSGROUP` at the :ref:`LAYER` level is set. If the `CLASSGROUP`
Expand Down
14 changes: 8 additions & 6 deletions en/ogc/sld.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
:Author: Jeff McKenna
:Contact: jmckenna at gatewaygeomatics.com
:Author: Yewondwossen Assefa
:Last Updated: 2024-06-27
:Last Updated: 2025-08-18

.. contents::
:depth: 2
Expand Down Expand Up @@ -250,12 +250,12 @@ RasterSymbolizer Yes Applies for 8-bit rasters
For each rule containing a filter, there is a class created with the
class expression set to reflect that filter. Available filters that
can be used are Comparison Filters and Logical Filters (see the
:ref:`Filter Encoding HowTo <filter_encoding>`). The ElseFilter
parameters are converted into a class in MapServer and placed at the
end of the class list with no expression set. They are used to
render elements that did not fit into any other classes.
:ref:`Filter Encoding HowTo <filter_encoding>`). The ElseFilter
parameters are converted into a class without an expression, placed
at the end of the class list, and flagged as fallback. They are used
to render elements that did not fit into any other classes.

- MinScaleDenomibator and MaxScaleDenominator are translated in minscale and
- MinScaleDenominator and MaxScaleDenominator are translated in minscale and
maxscale in MapServer.

The following are examples of valid requests using the Filters:
Expand Down Expand Up @@ -792,6 +792,8 @@ Other Items Implemented
- Referencing an SLD file in the LAYER :ref:`STYLEITEM <mapfile-layer-styleitem>`
- Reading SLD strings when from an attribute defined in the LAYER :ref:`STYLEITEM <mapfile-layer-styleitem>`

- Added the `FALLBACK` keyword in :ref:`CLASS` to support the functionality of `ElseFilter` in SLD.

Issues Found During Implementation
==================================

Expand Down