[Dive4elements-commits] [PATCH 3 of 4] Add CSV data facet to have a CSV file export

Wald Commits scm-commit at wald.intevation.org
Thu Jun 6 16:43:54 CEST 2013


# HG changeset patch
# User Raimund Renkert <rrenkert at intevation.de>
# Date 1370529782 -7200
# Node ID 3fcd1e859c663e5eb51b6780d9102992950b1728
# Parent  359adab7f27d11202b00f3e3a6ebbf5334c1551d
Add CSV data facet to have a CSV file export.

diff -r 359adab7f27d -r 3fcd1e859c66 artifacts/src/main/java/org/dive4elements/river/artifacts/states/minfo/DifferencesState.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/states/minfo/DifferencesState.java	Thu Jun 06 16:42:11 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/states/minfo/DifferencesState.java	Thu Jun 06 16:43:02 2013 +0200
@@ -22,6 +22,7 @@
 import org.dive4elements.river.artifacts.D4EArtifact;
 import org.dive4elements.river.artifacts.access.BedDifferencesAccess;
 import org.dive4elements.river.artifacts.model.CalculationResult;
+import org.dive4elements.river.artifacts.model.DataFacet;
 import org.dive4elements.river.artifacts.model.FacetTypes;
 import org.dive4elements.river.artifacts.model.minfo.BedDiffCalculation;
 import org.dive4elements.river.artifacts.model.minfo.BedDiffEpochFacet;
@@ -102,6 +103,7 @@
 
         CallMeta meta = context.getMeta();
 
+        newFacets.add(new DataFacet(CSV, "CSV data", ComputeType.ADVANCE, hash, id));
         for (int idx = 0; idx < results.length; idx++) {
             if (results[idx] instanceof BedDiffYearResult) {
                 newFacets.add(new BedDiffYearFacet(


More information about the Dive4elements-commits mailing list