changeset 850:39d06d01825a

Finalized the odv export of a 'Profilschnitt' (issue217). gnv-artifacts/trunk@966 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 21 Apr 2010 12:34:44 +0000
parents 38c8cc586a85
children 4bcf7bf4bfb7
files gnv-artifacts/ChangeLog gnv-artifacts/src/main/java/de/intevation/gnv/exports/VerticalCrossODVExport.java
diffstat 2 files changed, 13 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/gnv-artifacts/ChangeLog	Wed Apr 21 10:35:04 2010 +0000
+++ b/gnv-artifacts/ChangeLog	Wed Apr 21 12:34:44 2010 +0000
@@ -1,3 +1,14 @@
+2010-04-21  Ingo Weinzierl <ingo.weinzierl@intevation.de>
+
+	  Issue217
+
+	* src/main/java/de/intevation/gnv/exports/VerticalCrossODVExport.java: The
+	  first column (cruise) in an odv export is filled with a static "GNVExport"
+	  string. The second column (station) is filled with a generated string
+	  "Station" concartinated with the index of the current coordinate
+	  (e.g. "Station_1"). Both columns are written to odv only if the coordinate
+	  changes - otherwise these strings are replaced by tabs.
+
 2010-04-21  Ingo Weinzierl <ingo.weinzierl@intevation.de>
 
 	  Issue233
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/exports/VerticalCrossODVExport.java	Wed Apr 21 10:35:04 2010 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/exports/VerticalCrossODVExport.java	Wed Apr 21 12:34:44 2010 +0000
@@ -161,9 +161,8 @@
 
         String[] row    = new String[10];
         for (int i = 0; i < width; i++) {
-            row[0] = "Station_" + i;
-            //row[0] = "";
-            row[1] = "";
+            row[0] = "GNVExport";
+            row[1] = "Station_" + i;
             row[2] = "*";
             row[3] = datetime;
             row[4] = Double.toString(coordinates[i].x);
@@ -173,7 +172,6 @@
             for (int j = 0; j < height; j++) {
                 if (j == 1) {
                     row[0] = "";
-                    //row[0] = "Station_";
                     row[1] = "";
                     row[2] = "";
                     row[3] = "";

http://dive4elements.wald.intevation.org