changeset 3447:90ef6fdcf688

Set ld_mode. flys-artifacts/trunk@5110 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Mon, 23 Jul 2012 15:13:43 +0000
parents 5325040d35e3
children 700d09ca5dc8
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/fixation/LocationSelect.java
diffstat 2 files changed, 16 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Mon Jul 23 15:12:25 2012 +0000
+++ b/flys-artifacts/ChangeLog	Mon Jul 23 15:13:43 2012 +0000
@@ -1,3 +1,8 @@
+2012-07-23	Felix Wolfsteller	<felix.wolfsteller@intevation.de>
+
+	* src/main/java/de/intevation/flys/artifacts/states/fixation/LocationSelect.java:
+	  Set ld_mode so that FLYSUtils can use it.
+
 2012-07-23	Felix Wolfsteller	<felix.wolfsteller@intevation.de>
 
 	* src/main/resources/messages.properties,
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/fixation/LocationSelect.java	Mon Jul 23 15:12:25 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/fixation/LocationSelect.java	Mon Jul 23 15:13:43 2012 +0000
@@ -57,5 +57,16 @@
         return STEP;
     }
 
+
+    /** Misuse to set location mode. */
+    @Override
+    public boolean validate(Artifact artifact)
+    throws IllegalArgumentException
+    {
+        ((FLYSArtifact) artifact).addStringData("ld_mode", "distance");
+        return super.validate(artifact);
+    }
+
+
 }
 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :

http://dive4elements.wald.intevation.org