changeset 9586:e02797341885

Punkt 7.2 (CSV-Export der Vegetationszonen verhindern)
author gernotbelger
date Thu, 10 Jan 2019 08:53:09 +0100
parents aa6ee96071b7
children d116a791b1f8
files artifacts/src/main/java/org/dive4elements/river/exports/ChartExportHelper.java
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/ChartExportHelper.java	Wed Jan 09 18:07:51 2019 +0100
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/ChartExportHelper.java	Thu Jan 10 08:53:09 2019 +0100
@@ -58,6 +58,7 @@
 import org.dive4elements.river.FLYS;
 import org.dive4elements.river.artifacts.resources.Resources;
 import org.dive4elements.river.artifacts.sinfo.util.CalculationUtils;
+import org.dive4elements.river.jfree.StripedAreaDataset;
 import org.dive4elements.river.jfree.XYMetaSeriesCollection;
 import org.dive4elements.river.utils.Formatter;
 
@@ -341,8 +342,11 @@
                     if (data instanceof XYMetaSeriesCollection) {
                         metaData = ((XYMetaSeriesCollection) data).getMetaData();
                     }
-                    writeCSVHeader(writer, seriesKey.toString(), metaData);
-                    writeCSVData(writer, data, format);
+                    
+                    if( !(data instanceof StripedAreaDataset) ) {
+                        writeCSVHeader(writer, seriesKey.toString(), metaData);
+                        writeCSVData(writer, data, format);
+                    }
                 }
             }
             writer.close();

http://dive4elements.wald.intevation.org