diff src/java/de/intevation/mxd/writer/SymbolWriter.java @ 174:707f13cfba74

Improved the commandline arguments and save the mapfile in the correct directory.
author raimund.renkert@intevation.de
date Wed, 06 Jul 2011 18:38:40 +0200
parents b2c5a66022f1
children f11d13940626
line wrap: on
line diff
--- a/src/java/de/intevation/mxd/writer/SymbolWriter.java	Wed Jul 06 18:27:46 2011 +0200
+++ b/src/java/de/intevation/mxd/writer/SymbolWriter.java	Wed Jul 06 18:38:40 2011 +0200
@@ -13,6 +13,7 @@
 import edu.umn.gis.mapscript.pointObj;
 import edu.umn.gis.mapscript.MS_SYMBOL_TYPE;
 
+import java.io.File;
 
 /**
  * The interface to the mapfile writer.
@@ -157,6 +158,11 @@
         if(path.equals("")) {
             return;
         }
+
+        if (path.endsWith(".map")) {
+            path = path.substring(0, path.lastIndexOf(File.separator) + 1);
+            path += "symbols.sym";
+        }
         else {
             path += "symbols.sym";
         }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)