comparison artifacts/src/main/java/org/dive4elements/river/artifacts/states/minfo/BedQualityState.java @ 8653:dbec49147f54

(issue1755) Do not create interpolated themes and disable export of non interpolatable data. Due to the fact that data can contain NaN's which will be filtered out before creating the interpolator this requires the actual check for interpolatable data when data is set in the ResultValue
author Andre Heinecke <andre.heinecke@intevation.de>
date Wed, 01 Apr 2015 17:10:03 +0200
parents 36faef4f8acb
children 4054c7fce43e
comparison
equal deleted inserted replaced
8652:22f01b7e802e 8653:dbec49147f54
269 newFacets.add(new BedQualityDataFacet((idx << 8) + i++, 269 newFacets.add(new BedQualityDataFacet((idx << 8) + i++,
270 getFacetName(value), 270 getFacetName(value),
271 getFacetDescription(meta, range, value), 271 getFacetDescription(meta, range, value),
272 ComputeType.ADVANCE, 272 ComputeType.ADVANCE,
273 stateId, hash, value.getName(), value.getType())); 273 stateId, hash, value.getName(), value.getType()));
274 newFacets.add(new BedQualityInterpolFacet((idx << 8) + i++, 274 if (value.isInterpolateable()) {
275 getFacetName(value) + ".interpol", 275 newFacets.add(new BedQualityInterpolFacet((idx << 8) + i++,
276 getFacetInterpolDescription(meta, range, value), 276 getFacetName(value) + ".interpol",
277 ComputeType.ADVANCE, 277 getFacetInterpolDescription(meta, range, value),
278 stateId, hash, value.getName(), value.getType())); 278 ComputeType.ADVANCE,
279 stateId, hash, value.getName(), value.getType()));
280 }
279 } 281 }
280 } 282 }
281 } 283 }
282 284
283 protected String getFacetInterpolDescription(CallMeta meta, 285 protected String getFacetInterpolDescription(CallMeta meta,

http://dive4elements.wald.intevation.org