Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/shared/model/FixAnalysisArtifact.java @ 4866:acfd48384835
Changed data field names in fix analsis to ld_from, ld_to, ld step.
* Changed names in state model.
* Changed data fields in artifact.
* Use RangeAccess to get location/distance data.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Fri, 25 Jan 2013 11:53:04 +0100 |
parents | 7d796197e20a |
children |
comparison
equal
deleted
inserted
replaced
4865:1358d0c8481c | 4866:acfd48384835 |
---|---|
58 String river = artifactDescription.getDataValueAsString("river"); | 58 String river = artifactDescription.getDataValueAsString("river"); |
59 if (river != null) { | 59 if (river != null) { |
60 this.filter.setRiver(river); | 60 this.filter.setRiver(river); |
61 } | 61 } |
62 | 62 |
63 String from = artifactDescription.getDataValueAsString("from"); | 63 String from = artifactDescription.getDataValueAsString("ld_from"); |
64 if (from != null) { | 64 if (from != null) { |
65 try { | 65 try { |
66 double fkm = Double.parseDouble(from); | 66 double fkm = Double.parseDouble(from); |
67 this.filter.setFromKm(fkm); | 67 this.filter.setFromKm(fkm); |
68 } | 68 } |
69 catch(NumberFormatException nfe) { | 69 catch(NumberFormatException nfe) { |
70 GWT.log("Could not parse from km."); | 70 GWT.log("Could not parse from km."); |
71 } | 71 } |
72 } | 72 } |
73 | 73 |
74 String to = artifactDescription.getDataValueAsString("to"); | 74 String to = artifactDescription.getDataValueAsString("ld_to"); |
75 if (to != null) { | 75 if (to != null) { |
76 try { | 76 try { |
77 double tkm = Double.parseDouble(to); | 77 double tkm = Double.parseDouble(to); |
78 this.filter.setToKm(tkm); | 78 this.filter.setToKm(tkm); |
79 } | 79 } |