tim@52: package de.intevation.gnv.artifacts.context;
tim@52:
sascha@779: import de.intevation.artifactdatabase.DefaultArtifactContext;
tim@52:
sascha@521: import java.awt.Color;
sascha@444: import java.awt.Dimension;
sascha@521: import java.awt.Paint;
sascha@444:
sascha@472: import java.io.File;
sascha@472:
sascha@779: import org.apache.log4j.Logger;
sascha@779:
sascha@779: import org.w3c.dom.Document;
tim@52:
tim@52: /**
sascha@780: * @author Tim Englich
sascha@780: * @author Sascha L. Teichmann
tim@52: */
sascha@778: public class GNVArtifactContext
sascha@443: extends DefaultArtifactContext
sascha@443: {
tim@52: /**
tim@52: * the logger, used to log exceptions and additonaly information
tim@52: */
tim@52: private static Logger log = Logger.getLogger(GNVArtifactContext.class);
tim@171:
sascha@443: public static final String CHART_TEMPLATE_KEY =
sascha@443: "gnv.chart.template";
sascha@443:
sascha@443: public static final String HORIZONTAL_CROSS_SECTION_PROFILE_SAMPLES_KEY =
sascha@443: "gnv.horizontal.cross.section.profile.samples";
sascha@778:
tim@468: public static final String HORIZONTAL_CROSS_SECTION_SAMPLES_KEY =
tim@468: "gnv.horizontal.cross.section.samples";
sascha@443:
sascha@593: public static final String HORIZONTAL_CROSS_SECTION_EXTRAPOLATION_ROUNDS_KEY =
sascha@593: "gnv.horizontal.cross.section.extrapolation.rounds";
sascha@593:
sascha@472: public static final String
sascha@472: HORIZONTAL_CROSS_SECTION_RESULT_SHAPEFILE_PATH_KEY =
sascha@472: "gnv.horizontal.cross.section.result.shapefile";
sascha@472:
sascha@472: public static final File
sascha@778: DEFAULT_HORIZONTAL_CROSS_SECTION_PROFILE_SHAPEFILE_PATH =
sascha@472: new File(System.getProperty("java.io.tmpdir"));
sascha@472:
sascha@778: public static final Integer
sascha@443: DEFAULT_HORIZONTAL_CROSS_SECTION_PROFILE_SAMPLES = Integer.valueOf(250);
sascha@778:
sascha@778: public static final Integer
sascha@474: DEFAULT_HORIZONTAL_CROSS_SECTION_SAMPLES = Integer.valueOf(1024);
sascha@474:
sascha@778: public static final Integer
sascha@593: DEFAULT_HORIZONTAL_CROSS_SECTION_EXTRAPOLATION_ROUNDS = Integer.valueOf(0);
sascha@593:
sascha@474: public static final String HORIZONTAL_CROSS_SECTION_GROUND_INTERPOLATION_KEY =
sascha@474: "gnv.horizontal.cross.section.ground.interpolation";
sascha@474:
sascha@474: public static final String DEFAULT_HORIZONTAL_CROSS_SECTION_GROUND_INTERPOLATION =
sascha@474: "bilinear";
sascha@443:
sascha@443: public static final String PALETTES_KEY =
sascha@443: "gnv.color.palettes";
sascha@443:
sascha@444: public static final String VERTICAL_CROSS_SECTION_SAMPLES_KEY =
sascha@444: "gnv.vertical.cross.section.samples";
sascha@444:
sascha@444: public static final Dimension DEFAULT_VERTICAL_CROSS_SECTION_SAMPLES =
sascha@444: new Dimension(1024, 768);
sascha@444:
sascha@444: public static final String VERTICAL_CROSS_SECTION_FILTER_FACTORIES_KEY =
sascha@444: "gnv.vertical.cross.section.filter.factories";
sascha@444:
sascha@463: public static final String VERTICAL_CROSS_SECTION_GROUND_INTERPOLATION_KEY =
sascha@463: "gnv.vertical.cross.section.ground.interpolation";
sascha@463:
sascha@463: public static final String DEFAULT_VERTICAL_CROSS_SECTION_GROUND_INTERPOLATION =
sascha@463: "bilinear";
sascha@463:
sascha@521: public static final String VERTICAL_CROSS_SECTION_GROUND_FILL_KEY =
sascha@521: "gnv.vertical.cross.section.ground.fill";
sascha@521:
ingo@646: public static final String MAPSERVER_SERVER_PATH_KEY =
ingo@646: "mapserver.server.path";
ingo@646:
ingo@646: public static final String MAPSERVER_MAP_PATH_KEY =
ingo@646: "mapserver.map.path";
ingo@646:
sascha@521: public static final Paint DEFAULT_VERTICAL_CROSS_SECTION_GROUND_FILL =
sascha@521: new Color(0x7c8683);
sascha@521:
tim@171: public GNVArtifactContext() {
tim@52: super();
tim@52: log.debug("GNVArtifactContext.Constructor");
tim@52: }
tim@171:
tim@52: public GNVArtifactContext(Document config) {
tim@52: super(config);
tim@52: log.debug("GNVArtifactContext.Constructor(config)");
tim@52: }
tim@52:
tim@52: }