annotate flys-artifacts/doc/howto_wmsartifact.txt @ 5509:627584bc0586

Datacage: Added <dc:filter> element. This allows cleaner way to narrow the datasets. Example: <dc:context> <dc:statement> SELECT DISTINCT name AS hws_name, official AS hws_official, kind_id AS hws_kind FROM hws_lines WHERE river_id = ${river_id} </dc:statement> <dc:if test="dc:has-result()"> <lines> <dc:macro name="hws-lines"> <dc:elements> <hws factory="hwsfactory" name="{$hws_name}"/> </dc:elements> </dc:macro> <dc:filter expr="$hws_official=1"> <dc:if test="dc:has-result()"> <official> <dc:filter expr="$hws_kind=1"> <dc:if test="dc:has-result()"> <Durchlass><dc:call-macro name="hws-lines"></Durchlass> </dc:if> </dc:filter> <dc:filter expr="$hws_kind=2"> <dc:if test="dc:has-result()"> <Damm><dc:call-macro name="hws-lines"></Damm> </dc:if> </dc:filter> <dc:filter expr="$hws_kind=3"> <dc:if test="dc:has-result()"> <Graben><dc:call-macro name="hws-lines"></Graben> </dc:if> </dc:filter> </official> </dc:if> </dc:filter> </lines> </dc:if> </dc:context>
author Sascha L. Teichmann <teichmann@intevation.de>
date Thu, 28 Mar 2013 16:51:15 +0100
parents 7dcf604a4bf7
children
rev   line source
5350
2f6e6ae2fc56 Add small howto which consists mostly of the notes i took while
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
1 Howto add a wmsartifact for the maps:
2f6e6ae2fc56 Add small howto which consists mostly of the notes i took while
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
2
2f6e6ae2fc56 Add small howto which consists mostly of the notes i took while
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
3 - Add artifact similar to the existing ones in:
2f6e6ae2fc56 Add small howto which consists mostly of the notes i took while
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
4 flys-artifacts/src/main/java/de/intevation/flys/artifacts/
2f6e6ae2fc56 Add small howto which consists mostly of the notes i took while
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
5 - Define facet name in:
2f6e6ae2fc56 Add small howto which consists mostly of the notes i took while
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
6 flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/FacetTypes.java
2f6e6ae2fc56 Add small howto which consists mostly of the notes i took while
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
7 - Modify datacage configuration (there is documentation in flys-artifacts/doc):
2f6e6ae2fc56 Add small howto which consists mostly of the notes i took while
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
8 flys-artifacts/doc/conf/meta-data.xml
2f6e6ae2fc56 Add small howto which consists mostly of the notes i took while
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
9 - Define the Factory used in the datacage configuration in:
2f6e6ae2fc56 Add small howto which consists mostly of the notes i took while
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
10 flys-artifacts/doc/conf/conf.xml
2f6e6ae2fc56 Add small howto which consists mostly of the notes i took while
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
11 - Define the facet for the Map:
2f6e6ae2fc56 Add small howto which consists mostly of the notes i took while
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
12 flys-artifacts/doc/conf/artifacts/map.xml
2f6e6ae2fc56 Add small howto which consists mostly of the notes i took while
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
13 - You might also want to add it to the floodmap in winfo:
2f6e6ae2fc56 Add small howto which consists mostly of the notes i took while
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
14 flys-artifacts/doc/conf/artifacts/winfo.xml
2f6e6ae2fc56 Add small howto which consists mostly of the notes i took while
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
15 - Add translations for the datacage elements in:
2f6e6ae2fc56 Add small howto which consists mostly of the notes i took while
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
16 flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.java
2f6e6ae2fc56 Add small howto which consists mostly of the notes i took while
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
17 - English localization:
2f6e6ae2fc56 Add small howto which consists mostly of the notes i took while
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
18 flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.properties
2f6e6ae2fc56 Add small howto which consists mostly of the notes i took while
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
19 - German localization:
2f6e6ae2fc56 Add small howto which consists mostly of the notes i took while
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
20 flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_de.properties
2f6e6ae2fc56 Add small howto which consists mostly of the notes i took while
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
21
5436
7dcf604a4bf7 Add note about themes to howto
Andre Heinecke <aheinecke@intevation.de>
parents: 5350
diff changeset
22 You might also want a theme:
7dcf604a4bf7 Add note about themes to howto
Andre Heinecke <aheinecke@intevation.de>
parents: 5350
diff changeset
23 - Add a mapping from your Facet to the theme in:
7dcf604a4bf7 Add note about themes to howto
Andre Heinecke <aheinecke@intevation.de>
parents: 5350
diff changeset
24 flys-artifacts/doc/conf/themes.xml
7dcf604a4bf7 Add note about themes to howto
Andre Heinecke <aheinecke@intevation.de>
parents: 5350
diff changeset
25 - Define the theme in:
7dcf604a4bf7 Add note about themes to howto
Andre Heinecke <aheinecke@intevation.de>
parents: 5350
diff changeset
26 flys-artifacts/doc/conf/themes/default/floodmap.xml
7dcf604a4bf7 Add note about themes to howto
Andre Heinecke <aheinecke@intevation.de>
parents: 5350
diff changeset
27 flys-artifacts/doc/conf/themes/second/floodmap.xml
7dcf604a4bf7 Add note about themes to howto
Andre Heinecke <aheinecke@intevation.de>
parents: 5350
diff changeset
28

http://dive4elements.wald.intevation.org