diff src/java/de/intevation/mxd/writer/MapScriptWriter.java @ 175:f11d13940626

Handle symbol set and font set paths.
author raimund renkert <raimund.renkert@intevation.de>
date Thu, 07 Jul 2011 13:03:56 +0200
parents 707f13cfba74
children f3a91cd7440b
line wrap: on
line diff
--- a/src/java/de/intevation/mxd/writer/MapScriptWriter.java	Wed Jul 06 18:38:40 2011 +0200
+++ b/src/java/de/intevation/mxd/writer/MapScriptWriter.java	Thu Jul 07 13:03:56 2011 +0200
@@ -65,7 +65,12 @@
 	    mapFilename = System.getProperty("user.dir") +
 	       	File.separator +
 		mapFilename;
-	}	
+	}
+	String fontSetPath = map.getFontset().getFilename();
+	File fonts = new File(fontSetPath);
+	String fontSet = fonts.getAbsolutePath();
+	fontSet = fontSet.replaceAll("\\\\", "/");
+	map.setFontSet(fontSet);
     }
 
     /**
@@ -226,6 +231,7 @@
                     datasource += File.separator;
                 }
                 datasource += layerElement.getAttribute("data_source");
+		datasource = datasource.replaceAll("\\\\", "/");
                 layer.setData(datasource);
             }
             else if(con_type.equals("SDE")) {
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)