Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedDiffYearFilterFacet.java @ 7152:8c169743f4d0
Noted insights.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Thu, 26 Sep 2013 08:38:12 +0200 |
parents | af13ceeba52a |
children | a56fe3bc6700 |
comparison
equal
deleted
inserted
replaced
7151:491b645123b6 | 7152:8c169743f4d0 |
---|---|
48 (BedDiffYearResult[]) res.getData(); // TODO CAST TO SPECIFIC CLASS | 48 (BedDiffYearResult[]) res.getData(); // TODO CAST TO SPECIFIC CLASS |
49 Double start = (Double)context.getContextValue("startkm"); | 49 Double start = (Double)context.getContextValue("startkm"); |
50 Double end = (Double)context.getContextValue("endkm"); | 50 Double end = (Double)context.getContextValue("endkm"); |
51 if(start != null && end != null) { | 51 if(start != null && end != null) { |
52 RiverContext fc = (RiverContext)context.globalContext(); | 52 RiverContext fc = (RiverContext)context.globalContext(); |
53 // Adaptive smoothing, based on zoom factor/diagram extents. | |
53 ZoomScale scales = (ZoomScale)fc.get("zoomscale"); | 54 ZoomScale scales = (ZoomScale)fc.get("zoomscale"); |
54 RiverAccess access = new RiverAccess((D4EArtifact)artifact); | 55 RiverAccess access = new RiverAccess((D4EArtifact)artifact); |
55 String river = access.getRiver(); | 56 String river = access.getRiver(); |
56 | 57 |
57 double radius = scales.getRadius(river, start, end); | 58 double radius = scales.getRadius(river, start, end); |