[Dive4elements-commits] [PATCH 06 of 11] DA66Parser: Use filename without extension as description for cross section

Wald Commits scm-commit at wald.intevation.org
Thu Dec 27 16:10:32 CET 2012


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1356610819 -3600
# Node ID c3e2b0d343dc5c2e666dbfbd41cbec8c89bc7ed8
# Parent  b0b1008c07e926b971465c7871a73de2771defde
DA66Parser: Use filename without extension as description for cross section.

diff -r b0b1008c07e9 -r c3e2b0d343dc flys-backend/src/main/java/de/intevation/flys/importer/parsers/DA66Parser.java
--- a/flys-backend/src/main/java/de/intevation/flys/importer/parsers/DA66Parser.java	Thu Dec 27 13:19:34 2012 +0100
+++ b/flys-backend/src/main/java/de/intevation/flys/importer/parsers/DA66Parser.java	Thu Dec 27 13:20:19 2012 +0100
@@ -174,8 +174,7 @@
     /** Get the description of the cross section parsed. */
     @Override
     public String getDescription() {
-        // TODO place file name here
-        return "da66-dummy";
+        return removeExtension(getFileName());
     }
 
 


More information about the Dive4elements-commits mailing list