comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/WMSCatchmentArtifact.java @ 2672:5afccab9aac1

Modified floodmap specific datacage configuration and improved WMS hws layer. flys-artifacts/trunk@4361 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 08 May 2012 13:55:59 +0000
parents 055315495f8d
children f5af3adb3b95
comparison
equal deleted inserted replaced
2671:055315495f8d 2672:5afccab9aac1
76 { 76 {
77 private static final Logger logger = 77 private static final Logger logger =
78 Logger.getLogger(CatchmentState.class); 78 Logger.getLogger(CatchmentState.class);
79 79
80 protected int riverId; 80 protected int riverId;
81 protected String name;
82 81
83 public CatchmentState(WMSDBArtifact artifact) { 82 public CatchmentState(WMSDBArtifact artifact) {
84 super(artifact); 83 super(artifact);
85 riverId = 0; 84 riverId = 0;
86 name = null;
87 } 85 }
88 86
89 public int getRiverId() { 87 public int getRiverId() {
90 if (riverId == 0) { 88 if (riverId == 0) {
91 String ids = artifact.getDataAsString("ids"); 89 String ids = artifact.getDataAsString("ids");
98 logger.error("Cannot parse river id from '" + ids + "'"); 96 logger.error("Cannot parse river id from '" + ids + "'");
99 } 97 }
100 } 98 }
101 99
102 return riverId; 100 return riverId;
103 }
104
105 public String getName() {
106 if (name == null) {
107 String ids = artifact.getDataAsString("ids");
108
109 String parts[] = ids.split(";");
110 name = parts[1];
111 }
112
113 return name;
114 } 101 }
115 102
116 @Override 103 @Override
117 protected String getFacetType() { 104 protected String getFacetType() {
118 return FLOODMAP_CATCHMENT; 105 return FLOODMAP_CATCHMENT;

http://dive4elements.wald.intevation.org