Skip to content

Commit 145a29b

Browse files
committed
Fix sample config for new dimension syntax (#173)
1 parent 65bfcc7 commit 145a29b

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

mapcache.xml.sample

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,12 @@
834834
file. i.e. their are as many different caches created as their are values in the
835835
<values> tag.
836836
-->
837-
<dimension type="values" name="DIM1" default="foobar">foobar,foobarbaz,foo,bar</dimension>
837+
<dimension type="values" name="DIM1" default="foobar">
838+
<value>foobar</value>
839+
<value>foobarbaz</value>
840+
<value>foo</value>
841+
<value>bar</value>
842+
</dimension>
838843

839844
<!-- regex dimension
840845
the following creates a MAPFILE dimension, for using the same mod-mapcache tileset with different
@@ -845,18 +850,12 @@
845850
spearated by slashes (/) and finishing with ".map" ( [a-zA-Z0-9\./]*\.map$ ) , but will faill if there
846851
are two consecutive dots (..) in the path, to prevent filesystem traversal ( (?!.*\.\.) ).
847852
-->
848-
<dimension type="regex" name="MAPFILE" default="/path/to/mapfile.map">^(?!.*\.\.)[a-zA-Z0-9\./]*\.map$</dimension>
849-
850-
<!-- intervals dimension
851-
the syntax is the same as common-ows, i.e. a comma separated list of "min/max/resolution" entries.
852-
eg:
853-
* 0/5000/1000 allows the values 0,1000,2000,3000,4000 and 5000
854-
* 0/100/0 allows any values between 0 and 100
855-
* both values can be combined: 0/5000/1000,0/100/0
856-
-->
857-
<dimension name="ELEVATION" type="intervals" default="0">0/5000/1000</dimension>
853+
<dimension type="regex" name="MAPFILE" default="/path/to/mapfile.map">
854+
<regex>^(?!.*\.\.)[a-zA-Z0-9\./]*\.map$</regex>
855+
</dimension>
856+
858857

859-
<!-- coming in a future version: support for ISO8601 date/time dimensions -->
858+
<!-- todo: example support for ISO8601 date/time and sqlite dimensions -->
860859

861860
</dimensions>
862861
</tileset>

0 commit comments

Comments
 (0)