Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/LongitudinalSectionGenerator.java @ 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 | fc86fcfe503e |
children | e2124ca11adb |
comparison
equal
deleted
inserted
replaced
2198:672a41efe222 | 2199:7bac5afb9892 |
---|---|
645 for (int i = 0; i < points.length(); i++) { | 645 for (int i = 0; i < points.length(); i++) { |
646 JSONArray array = points.getJSONArray(i); | 646 JSONArray array = points.getJSONArray(i); |
647 double x = array.getDouble(0); | 647 double x = array.getDouble(0); |
648 double y = array.getDouble(1); | 648 double y = array.getDouble(1); |
649 String name = array.getString(2); | 649 String name = array.getString(2); |
650 boolean act = array.getBoolean(3); | |
651 if (!act) { | |
652 continue; | |
653 } | |
650 //logger.debug(" x " + x + " y " + y ); | 654 //logger.debug(" x " + x + " y " + y ); |
651 series.add(x, y, false); | 655 series.add(x, y, false); |
652 xy.add(new CollisionFreeXYTextAnnotation(name, x, y)); | 656 xy.add(new CollisionFreeXYTextAnnotation(name, x, y)); |
653 } | 657 } |
654 } | 658 } |