comparison flys-backend/src/main/java/de/intevation/flys/importer/ImportBedHeightType.java @ 2808:b57c95094b68

Finished work on parsing meta information and data specific to single bed heights files in MINFO. flys-backend/trunk@4216 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 11 Apr 2012 13:12:52 +0000
parents
children f283212966e8
comparison
equal deleted inserted replaced
2807:5ac1db5156be 2808:b57c95094b68
1 package de.intevation.flys.importer;
2
3 import org.apache.log4j.Logger;
4
5
6 public class ImportBedHeightType {
7
8 private static final Logger log =
9 Logger.getLogger(ImportBedHeightType.class);
10
11 protected String name;
12 protected String description;
13
14
15 public ImportBedHeightType(String name, String description) {
16 this.name = name;
17 this.description = description;
18 }
19
20
21 public static String getBedHeightName(String description) {
22 if (description.equals("Flächenpeilung")) {
23 return "FP";
24 }
25 else if ("Querprofile".equals(description)) {
26 return "QP";
27 }
28 else {
29 log.warn("Unknown bed height type: " + description);
30 return null;
31 }
32 }
33 }
34 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org