comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/FlowVelocityFilterFacet.java @ 7261:a56fe3bc6700

Refactoring: Let RiverAccess.getRiver return an River. Renamed getRiver in getRiverName. Update Callers.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Tue, 08 Oct 2013 14:50:58 +0200
parents af13ceeba52a
children 42076d94977e
comparison
equal deleted inserted replaced
7260:0b32f8980fed 7261:a56fe3bc6700
60 FlowVelocityData[] data = (FlowVelocityData[]) res.getData(); 60 FlowVelocityData[] data = (FlowVelocityData[]) res.getData();
61 if(start != null && end != null) { 61 if(start != null && end != null) {
62 RiverContext fc = (RiverContext)context.globalContext(); 62 RiverContext fc = (RiverContext)context.globalContext();
63 ZoomScale scales = (ZoomScale)fc.get("zoomscale"); 63 ZoomScale scales = (ZoomScale)fc.get("zoomscale");
64 RiverAccess access = new RiverAccess((D4EArtifact)artifact); 64 RiverAccess access = new RiverAccess((D4EArtifact)artifact);
65 String river = access.getRiver(); 65 String river = access.getRiverName();
66 66
67 double radius = scales.getRadius(river, start, end); 67 double radius = scales.getRadius(river, start, end);
68 FlowVelocityData oldData = data[index]; 68 FlowVelocityData oldData = data[index];
69 FlowVelocityData newData = new FlowVelocityData(); 69 FlowVelocityData newData = new FlowVelocityData();
70 double[][] q = oldData.getQPoints(); 70 double[][] q = oldData.getQPoints();

http://dive4elements.wald.intevation.org