comparison flys-artifacts/src/main/java/de/intevation/flys/utils/FLYSUtils.java @ 2041:e5f01f2325c9

Cosmetics, doc. flys-artifacts/trunk@3527 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Thu, 22 Dec 2011 12:53:29 +0000
parents f73036b991e2
children d13be39cfd1d
comparison
equal deleted inserted replaced
2040:cd9bcdcf6597 2041:e5f01f2325c9
179 else { 179 else {
180 return KM_MODE.NONE; 180 return KM_MODE.NONE;
181 } 181 }
182 } 182 }
183 183
184 184 /**
185 * Get min and max kilometer, independent of parametization
186 * (ld_from/to vs ld_locations).
187 */
185 public static double[] getKmRange(FLYSArtifact flys) { 188 public static double[] getKmRange(FLYSArtifact flys) {
186 switch (getKmRangeMode(flys)) { 189 switch (getKmRangeMode(flys)) {
187 case RANGE: { 190 case RANGE: {
188 return getKmFromTo(flys); 191 return getKmFromTo(flys);
189 } 192 }
225 return null; 228 return null;
226 } 229 }
227 } 230 }
228 231
229 232
233 /**
234 * Return sorted array of locations at which stuff was calculated
235 * (from ld_locations data), null if not parameterized this way.
236 */
230 public static double[] getLocations(FLYSArtifact flys) { 237 public static double[] getLocations(FLYSArtifact flys) {
231 String locationStr = flys.getDataAsString("ld_locations"); 238 String locationStr = flys.getDataAsString("ld_locations");
232 239
233 if (locationStr == null || locationStr.length() == 0) { 240 if (locationStr == null || locationStr.length() == 0) {
234 return null; 241 return null;

http://dive4elements.wald.intevation.org