changeset 3070:6875120af2a2

Fetch only 'qps' cross section tracks for WSPLGEN calculation. flys-artifacts/trunk@4655 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 14 Jun 2012 07:57:36 +0000
parents 4067ec9036c2
children 9136fc8f35f0
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/FloodMapState.java
diffstat 2 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Wed Jun 13 15:36:13 2012 +0000
+++ b/flys-artifacts/ChangeLog	Thu Jun 14 07:57:36 2012 +0000
@@ -1,3 +1,9 @@
+2012-06-14  Ingo Weinzierl <ingo@intevation.de>
+
+	* src/main/java/de/intevation/flys/artifacts/states/FloodMapState.java:
+	  Fetch only cross section tracks that have a name 'qps' set for WSPLGEN
+	  calculation.
+
 2012-06-11	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
 
     * src/main/java/de/intevation/flys/artifacts/model/fixings/FixAvSectorFacet.java:
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/FloodMapState.java	Wed Jun 13 15:36:13 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/FloodMapState.java	Thu Jun 14 07:57:36 2012 +0000
@@ -86,6 +86,8 @@
     public static final String WSPLGEN_USER_ZIP       = "user-rgd.zip";
     public static final String WSPLGEN_USER_FILENAME  = "user-rgd";
 
+    public static final String WSPLGEN_QPS_NAME = "qps";
+
     public static final int WSPLGEN_DEFAULT_OUTPUT = 0;
 
 
@@ -648,7 +650,7 @@
         String srs     = "EPSG:" + srid;
 
         List<CrossSectionTrack> cst =
-            CrossSectionTrack.getCrossSectionTrack(river);
+            CrossSectionTrack.getCrossSectionTrack(river, WSPLGEN_QPS_NAME);
 
         logger.debug("Found " + cst.size() + " CrossSectionTracks.");
 

http://dive4elements.wald.intevation.org