comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/LocationSelect.java @ 921:610d0e0f4f85

#159 Modifications in the transition model to support a state with a kilometer range input only. flys-artifacts/trunk@2270 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 30 Jun 2011 11:32:17 +0000
parents 9a035ef7b595
children eccf966fb677
comparison
equal deleted inserted replaced
920:a618dd6d80ea 921:610d0e0f4f85
48 XMLUtils.ElementCreator cr, 48 XMLUtils.ElementCreator cr,
49 Artifact artifact, 49 Artifact artifact,
50 String name, 50 String name,
51 CallContext context) 51 CallContext context)
52 { 52 {
53 double[] minmax = getMinMaxDistance(artifact); 53 double[] minmax = getMinMax(artifact);
54 54
55 double minVal = Double.MIN_VALUE; 55 double minVal = Double.MIN_VALUE;
56 double maxVal = Double.MAX_VALUE; 56 double maxVal = Double.MAX_VALUE;
57 57
58 if (minmax != null) { 58 if (minmax != null) {
93 if (locationStr == null || locationStr.length() == 0) { 93 if (locationStr == null || locationStr.length() == 0) {
94 logger.error("No locations given."); 94 logger.error("No locations given.");
95 throw new IllegalArgumentException("error_empty_state"); 95 throw new IllegalArgumentException("error_empty_state");
96 } 96 }
97 97
98 double[] minmax = getMinMaxDistance(artifact); 98 double[] minmax = getMinMax(artifact);
99 double[] mm = extractLocations(locationStr); 99 double[] mm = extractLocations(locationStr);
100 100
101 logger.debug("Inserted min location: " + mm[0]); 101 logger.debug("Inserted min location: " + mm[0]);
102 logger.debug("Inserted max location: " + mm[mm.length-1]); 102 logger.debug("Inserted max location: " + mm[mm.length-1]);
103 103

http://dive4elements.wald.intevation.org