Skip to content

Commit

Permalink
Merge pull request #873 from geographika/template-missing-field
Browse files Browse the repository at this point in the history
Add ignoremissing property to template docs
  • Loading branch information
rouault committed Feb 2, 2024
2 parents f1952aa + e78c3dc commit 9e34972
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions en/mapfile/template.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
:Contact: frank.koormann at intevation.de
:Author: Jeff McKenna
:Contact: jmckenna at gatewaygeomatics.com
:Last Updated: 2021-03-30
:Last Updated: 2024-01-25

.. contents:: Table of Contents
:depth: 2
Expand Down Expand Up @@ -717,12 +717,12 @@ processed as a result of a query.
Available attributes:

- name =
The name of an attribute, case insenstive. (required)
The name of an attribute, case insensitive. (required)

- precision =
The number of decimal places to use for numeric data. Use
of this will force display as a number and will lead to
unpredicable results with non-numeric data.
unpredictable results with non-numeric data.

- pattern =
Regular expression to compare the value of an item
Expand Down Expand Up @@ -750,15 +750,22 @@ processed as a result of a query.
complex presentation. Default is to output only the
value.

- ignoremissing =
Set this attribute to "true" to ignore errors if the
attribute set in name is missing for the feature. In this case
the nullformat value will be used, or an empty
string if not set. Useful for using the same template
for multiple datasets with variations in attribute names.

- nullformat =
String to output if the attribute value is NULL, empty or
doesn't match the pattern (if defined). If not set and
any of these conditions occur the item tag is replaced
with an empty string.

- padding =
Set to an integer value to pad an item value with spaces
to the right. Useful to create fixed width strings.
Set to an integer value to pad an item value with spaces
to the right. Useful to create fixed width strings.

As a simple example:
::
Expand Down

0 comments on commit 9e34972

Please sign in to comment.