comparison artifacts/src/main/java/org/dive4elements/river/exports/MapGenerator.java @ 8856:5e38e2924c07 3.2.x

Fix code style.
author Tom Gottfried <tom@intevation.de>
date Thu, 18 Jan 2018 20:12:01 +0100
parents f5e126739c36
children 63bbd5e45839 0a5239a1e46e
comparison
equal deleted inserted replaced
8855:d7c005e12af0 8856:5e38e2924c07
71 public void setup(Object config) { 71 public void setup(Object config) {
72 log.debug("MapGenerator.setup"); 72 log.debug("MapGenerator.setup");
73 } 73 }
74 74
75 @Override 75 @Override
76 public void init(String outName, Document request, OutputStream out, CallContext context) { 76 public void init(
77 String outName,
78 Document request,
79 OutputStream out,
80 CallContext context
81 ) {
77 log.debug("MapGenerator.init"); 82 log.debug("MapGenerator.init");
78 83
79 this.outName = outName; 84 this.outName = outName;
80 this.request = request; 85 this.request = request;
81 this.out = out; 86 this.out = out;
148 ThemeDocument attr 153 ThemeDocument attr
149 ) { 154 ) {
150 try { 155 try {
151 if(wms instanceof WSPLGENLayerFacet) { 156 if(wms instanceof WSPLGENLayerFacet) {
152 // Retrieve waterlevel ground differences from artifact 157 // Retrieve waterlevel ground differences from artifact
153 StateData dFrom = flys.getData(WaterlevelGroundDifferences.LOWER_FIELD); 158 StateData dFrom =
154 StateData dTo = flys.getData(WaterlevelGroundDifferences.UPPER_FIELD); 159 flys.getData(WaterlevelGroundDifferences.LOWER_FIELD);
155 StateData dStep = flys.getData(WaterlevelGroundDifferences.DIFF_FIELD); 160 StateData dTo =
156 161 flys.getData(WaterlevelGroundDifferences.UPPER_FIELD);
157 String fromStr = dFrom != null ? (String) dFrom.getValue() : null; 162 StateData dStep =
158 String toStr = dTo != null ? (String) dTo.getValue() : null; 163 flys.getData(WaterlevelGroundDifferences.DIFF_FIELD);
159 String stepStr = dStep != null ? (String) dStep.getValue() : null; 164
165 String fromStr = dFrom != null
166 ? (String) dFrom.getValue()
167 : null;
168 String toStr = dTo != null
169 ? (String) dTo.getValue()
170 : null;
171 String stepStr = dStep != null
172 ? (String) dStep.getValue()
173 : null;
160 174
161 float from = Float.parseFloat(fromStr); 175 float from = Float.parseFloat(fromStr);
162 float to = Float.parseFloat(toStr); 176 float to = Float.parseFloat(toStr);
163 float step = Float.parseFloat(stepStr); 177 float step = Float.parseFloat(stepStr);
164 178

http://dive4elements.wald.intevation.org