changeset 7368:9eef5004ff21

FlowVelocityModelArtifact: Slightly improve facet names.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Thu, 17 Oct 2013 07:45:41 +0200
parents 9ef09d285b1e
children 6bc884bab32e
files artifacts/src/main/java/org/dive4elements/river/artifacts/FlowVelocityModelArtifact.java
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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);

http://dive4elements.wald.intevation.org