[PATCH 6 of 9] FlowVelocityModelArtifact: Slightly improve facet names

Wald Commits scm-commit at wald.intevation.org
Thu Oct 17 08:51:32 CEST 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1381988741 -7200
# Node ID 9eef5004ff21dd0671519709e6c64e2ba8737489
# Parent  9ef09d285b1ed5a8c055ae484ba705b302ea87e9
FlowVelocityModelArtifact: Slightly improve facet names.

diff -r 9ef09d285b1e -r 9eef5004ff21 artifacts/src/main/java/org/dive4elements/river/artifacts/FlowVelocityModelArtifact.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/FlowVelocityModelArtifact.java	Thu Oct 17 07:45:13 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/FlowVelocityModelArtifact.java	Thu Oct 17 07:45:41 2013 +0200
@@ -142,33 +142,33 @@
         String code = getDatacageIDValue(data);
 
         if (code != null) {
-            //String name = FlowVelocityModel.getFlowVelocityModelDescription(Integer.valueOf(code));
-            String name = "facet";
+            String name = FlowVelocityModel.getModelDescription(Integer.valueOf(code));
+
             Facet facet = new FlowVelocityFacet(
                 0,
                 FLOW_VELOCITY_MAINCHANNEL,
-                name + "main",
+                "mainchannel " + name,
                 ComputeType.ADVANCE, state.getID(), "hash"
                 );
             fs.add(facet);
             Facet tauFacet = new FlowVelocityFacet(
                 0,
                 FLOW_VELOCITY_TAU,
-                name+"tau",
+                "tau " + name,
                 ComputeType.ADVANCE, state.getID(), "hash"
                 );
             fs.add(tauFacet);
             Facet qFacet = new FlowVelocityFacet(
                 0,
                 FLOW_VELOCITY_DISCHARGE,
-                name+"q",
+                "Q  " + name,
                 ComputeType.ADVANCE, state.getID(), "hash"
                 );
             fs.add(qFacet);
             Facet tFacet = new FlowVelocityFacet(
                 0,
                 FLOW_VELOCITY_TOTALCHANNEL,
-                name+"t",
+                "total "+ name,
                 ComputeType.ADVANCE, state.getID(), "hash"
                 );
             fs.add(tFacet);


More information about the Dive4elements-commits mailing list