Skip to content

Commit

Permalink
Fix EXPRESSION indentation and add RUNSUB note for relevant attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
geographika committed Sep 12, 2019
1 parent 57ef0d0 commit f9fd6dc
Showing 1 changed file with 23 additions and 9 deletions.
32 changes: 23 additions & 9 deletions en/mapfile/class.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,20 @@ EXPRESSION [string]
=, or, and, lt, gt, ge, le, eq, ne, in, ~, ~\*. As one might
expect, this level of complexity is slower to process.

- One string function exists: length(). It computes the length
of a string:
- One string function exists: length(). It computes the length
of a string:

.. code-block:: mapfile
.. code-block:: mapfile

EXPRESSION (length('[NAME_E]') < 8)
EXPRESSION (length('[NAME_E]') < 8)

String comparisons and regular expressions work from the classitem
defined at the layer level. You may mix expression types within
the different classes of a layer.

.. note::
|RUNSUB|

.. index::
pair: CLASS; GROUP

Expand Down Expand Up @@ -115,6 +118,8 @@ GROUP [string]
...
END # layer

.. note::
|RUNSUB|

.. index::
pair: CLASS; KEYIMAGE
Expand All @@ -125,7 +130,10 @@ KEYIMAGE [filename]
Full filename of the legend image for the :ref:`CLASS`. This image
is used when building a legend (or requesting a legend icon via
MapScript or the :ref:`CGI application <cgi>`).


.. note::
|RUNSUB|

.. index::
pair: CLASS; LABEL

Expand Down Expand Up @@ -244,7 +252,10 @@ STATUS [on|off]
:ref:`TEMPLATE <template>` [filename]
Template file or URL to use in presenting query results to the
user. See :ref:`template` for more info.


.. note::
|RUNSUB|

.. index::
pair: CLASS; TEXT

Expand All @@ -264,12 +275,18 @@ TEXT [string|expression]

TEXT ("Area is: " + tostring([area],"%.2f"))

.. note::
|RUNSUB|

.. index::
pair: CLASS; TTILE

TTILE [string]
Text used for legend labelling.

.. note::
|RUNSUB|

.. index::
pair: CLASS; VALIDATION

Expand All @@ -279,6 +296,3 @@ TTILE [string]
As of MapServer 5.4.0, `VALIDATION` blocks are the preferred
mechanism for specifying validation patterns for CGI param runtime
substitutions. See :ref:`RUNSUB`.



0 comments on commit f9fd6dc

Please sign in to comment.