Mercurial > dive4elements > river
annotate flys-artifacts/doc/conf/mapserver/wsplgen_layer.vm @ 5449:504a62887217
Datacage: Compile XPath expressions and reuse them. With the introduction of filters in dc:elements XPath expressions are evalutated very often so compiling them should reduce the overhead significantly.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Wed, 27 Mar 2013 10:59:55 +0100 |
parents | 0795c296f718 |
children |
rev | line source |
---|---|
2637 | 1 LAYER |
2 NAME "$LAYER.getName()" | |
3 TYPE $LAYER.getType() | |
4 DATA "$LAYER.getDirectory()/$LAYER.getData()" | |
5 STATUS ON | |
6 TEMPLATE map.html | |
7 TOLERANCE 10 | |
8 DUMP TRUE | |
9 #if( $LAYER.getGroup() ) | |
10 GROUP "$LAYER.getGroup()" | |
11 #end | |
12 | |
2682
0795c296f718
Added a PROJECTION section for all missing mapserver templates.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
2637
diff
changeset
|
13 PROJECTION |
0795c296f718
Added a PROJECTION section for all missing mapserver templates.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
2637
diff
changeset
|
14 "init=epsg:$LAYER.getSrid()" |
0795c296f718
Added a PROJECTION section for all missing mapserver templates.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
2637
diff
changeset
|
15 END |
0795c296f718
Added a PROJECTION section for all missing mapserver templates.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
2637
diff
changeset
|
16 |
2637 | 17 METADATA |
18 "wms_title" "$LAYER.getTitle()" | |
19 "gml_include_items" "all" | |
20 "ows_enable_request" "GetFeatureInfo" | |
21 "wms_feature_info_mime_type" "gml" | |
22 #if ( $LAYER.getGroupTitle() ) | |
23 "wms_group_title" "$LAYER.getGroupTitle()" | |
24 #end | |
25 END | |
26 | |
27 #if ( !$LAYER.getStyle() ) | |
28 #if ( $LAYER.getGroupTitle() ) | |
29 #if ( $LAYER.getType() == "POLYGON" ) | |
30 #include("barrier_polygons_class.vm") | |
31 #else | |
32 #include("barrier_lines_class.vm") | |
33 #end | |
34 #else | |
35 #include("wsplgen_class.vm") | |
36 #end | |
37 #else | |
38 $LAYER.getStyle() | |
39 #end | |
40 END |