changeset 2199:7bac5afb9892

Skip 'inactive' points in output generation. flys-artifacts/trunk@3815 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Mon, 30 Jan 2012 08:37:01 +0000
parents 672a41efe222
children 575ed0248be2
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/exports/LongitudinalSectionGenerator.java
diffstat 2 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Sat Jan 28 12:50:03 2012 +0000
+++ b/flys-artifacts/ChangeLog	Mon Jan 30 08:37:01 2012 +0000
@@ -1,3 +1,8 @@
+2012-01-30  Felix Wolfsteller	<felix.wolfsteller@intevation.de>
+
+	* src/main/java/de/intevation/flys/exports/LongitudinalSectionGenerator.java:
+	  (doPoints): Skip 'inactive' points.
+
 2012-01-28	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
 
 	* src/main/java/de/intevation/flys/artifacts/model/WW.java:
@@ -42,6 +47,7 @@
 	  New. Facet for the W~W relation.
 
 	* src/main/java/de/intevation/flys/artifacts/model/WaterlevelFacet.java: Cosmetics.
+
 2012-01-27	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
 
 	* src/main/java/de/intevation/flys/artifacts/states/ReferenceCurveState.java:
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/LongitudinalSectionGenerator.java	Sat Jan 28 12:50:03 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/LongitudinalSectionGenerator.java	Mon Jan 30 08:37:01 2012 +0000
@@ -647,6 +647,10 @@
                 double x    = array.getDouble(0);
                 double y    = array.getDouble(1);
                 String name = array.getString(2);
+                boolean act = array.getBoolean(3);
+                if (!act) {
+                    continue;
+                }
                 //logger.debug(" x " + x + " y " + y );
                 series.add(x, y, false);
                 xy.add(new CollisionFreeXYTextAnnotation(name, x, y));

http://dive4elements.wald.intevation.org