Mercurial > dive4elements > river
annotate artifacts/doc/conf/mapserver/wsplgen_layer.vm @ 8472:3f505fba522f
(issue1772) Use 0.001km tolarance instead of 0.1 to find matching km.
There is no sense to use a define here. I will not write
static final double NULLPOINTNULLNULLONE=0.001 if i just want to use that
value and not any other value which may make sense in some other place.
Using hardcoded values can have its merits and makes the code easier to
read.
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Tue, 18 Nov 2014 15:24:40 +0100 |
parents | 1a4df065de26 |
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" | |
6992
1a4df065de26
(issue1023) mapserver templates mapfile.vm, wsplgen_layer.vm explicitely adding the three projects, so that mapserver offers the in the capabilities.
Bernhard Reiter <bernhard@intevation.de>
parents:
5838
diff
changeset
|
22 "wms_srs" "EPSG:4326 EPSG:31466 EPSG:31467" |
2637 | 23 #if ( $LAYER.getGroupTitle() ) |
24 "wms_group_title" "$LAYER.getGroupTitle()" | |
25 #end | |
26 END | |
27 | |
28 #if ( !$LAYER.getStyle() ) | |
29 #if ( $LAYER.getGroupTitle() ) | |
30 #if ( $LAYER.getType() == "POLYGON" ) | |
31 #include("barrier_polygons_class.vm") | |
32 #else | |
33 #include("barrier_lines_class.vm") | |
34 #end | |
35 #else | |
36 #include("wsplgen_class.vm") | |
37 #end | |
38 #else | |
39 $LAYER.getStyle() | |
40 #end | |
41 END |