comparison gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/context/GNVArtifactContext.java @ 657:af3f56758f59

merged gnv-artifacts/0.5
author Thomas Arendsen Hein <thomas@intevation.de>
date Fri, 28 Sep 2012 12:13:53 +0200
parents c8749d83d9b6
children 9a828e5a2390
comparison
equal deleted inserted replaced
590:5f5f273c8566 657:af3f56758f59
1 /**
2 *
3 */
4 package de.intevation.gnv.artifacts.context;
5
6 import org.apache.log4j.Logger;
7
8 import org.w3c.dom.Document;
9
10 import java.awt.Color;
11 import java.awt.Dimension;
12 import java.awt.Paint;
13
14 import java.io.File;
15
16 import de.intevation.artifactdatabase.DefaultArtifactContext;
17
18 /**
19 * @author Tim Englich (tim.englich@intevation.de)
20 * @author Sascha L. Teichmann (sascha.teichmann@intevation.de)
21 */
22 public class GNVArtifactContext
23 extends DefaultArtifactContext
24 {
25 /**
26 * the logger, used to log exceptions and additonaly information
27 */
28 private static Logger log = Logger.getLogger(GNVArtifactContext.class);
29
30 public static final String CHART_TEMPLATE_KEY =
31 "gnv.chart.template";
32
33 public static final String HORIZONTAL_CROSS_SECTION_PROFILE_SAMPLES_KEY =
34 "gnv.horizontal.cross.section.profile.samples";
35
36 public static final String HORIZONTAL_CROSS_SECTION_SAMPLES_KEY =
37 "gnv.horizontal.cross.section.samples";
38
39 public static final String HORIZONTAL_CROSS_SECTION_EXTRAPOLATION_ROUNDS_KEY =
40 "gnv.horizontal.cross.section.extrapolation.rounds";
41
42 public static final String
43 HORIZONTAL_CROSS_SECTION_RESULT_SHAPEFILE_PATH_KEY =
44 "gnv.horizontal.cross.section.result.shapefile";
45
46 public static final File
47 DEFAULT_HORIZONTAL_CROSS_SECTION_PROFILE_SHAPEFILE_PATH =
48 new File(System.getProperty("java.io.tmpdir"));
49
50 public static final Integer
51 DEFAULT_HORIZONTAL_CROSS_SECTION_PROFILE_SAMPLES = Integer.valueOf(250);
52
53 public static final Integer
54 DEFAULT_HORIZONTAL_CROSS_SECTION_SAMPLES = Integer.valueOf(1024);
55
56 public static final Integer
57 DEFAULT_HORIZONTAL_CROSS_SECTION_EXTRAPOLATION_ROUNDS = Integer.valueOf(0);
58
59 public static final String HORIZONTAL_CROSS_SECTION_GROUND_INTERPOLATION_KEY =
60 "gnv.horizontal.cross.section.ground.interpolation";
61
62 public static final String DEFAULT_HORIZONTAL_CROSS_SECTION_GROUND_INTERPOLATION =
63 "bilinear";
64
65 public static final String PALETTES_KEY =
66 "gnv.color.palettes";
67
68 public static final String VERTICAL_CROSS_SECTION_SAMPLES_KEY =
69 "gnv.vertical.cross.section.samples";
70
71 public static final Dimension DEFAULT_VERTICAL_CROSS_SECTION_SAMPLES =
72 new Dimension(1024, 768);
73
74 public static final String VERTICAL_CROSS_SECTION_FILTER_FACTORIES_KEY =
75 "gnv.vertical.cross.section.filter.factories";
76
77 public static final String VERTICAL_CROSS_SECTION_GROUND_INTERPOLATION_KEY =
78 "gnv.vertical.cross.section.ground.interpolation";
79
80 public static final String DEFAULT_VERTICAL_CROSS_SECTION_GROUND_INTERPOLATION =
81 "bilinear";
82
83 public static final String VERTICAL_CROSS_SECTION_GROUND_FILL_KEY =
84 "gnv.vertical.cross.section.ground.fill";
85
86 public static final String MAPSERVER_SERVER_PATH_KEY =
87 "mapserver.server.path";
88
89 public static final String MAPSERVER_MAP_PATH_KEY =
90 "mapserver.map.path";
91
92 public static final Paint DEFAULT_VERTICAL_CROSS_SECTION_GROUND_FILL =
93 new Color(0x7c8683);
94
95 public GNVArtifactContext() {
96 super();
97 log.debug("GNVArtifactContext.Constructor");
98 }
99
100 public GNVArtifactContext(Document config) {
101 super(config);
102 log.debug("GNVArtifactContext.Constructor(config)");
103 }
104
105 }

http://dive4elements.wald.intevation.org