comparison 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
comparison
equal deleted inserted replaced
174:707f13cfba74 175:f11d13940626
63 File.separator + 63 File.separator +
64 mapFilename); 64 mapFilename);
65 mapFilename = System.getProperty("user.dir") + 65 mapFilename = System.getProperty("user.dir") +
66 File.separator + 66 File.separator +
67 mapFilename; 67 mapFilename;
68 } 68 }
69 String fontSetPath = map.getFontset().getFilename();
70 File fonts = new File(fontSetPath);
71 String fontSet = fonts.getAbsolutePath();
72 fontSet = fontSet.replaceAll("\\\\", "/");
73 map.setFontSet(fontSet);
69 } 74 }
70 75
71 /** 76 /**
72 * Write the mapfile. 77 * Write the mapfile.
73 * @param doc The root document containin the map attributes. 78 * @param doc The root document containin the map attributes.
224 if(layerElement.hasAttribute("workspace")) { 229 if(layerElement.hasAttribute("workspace")) {
225 datasource = layerElement.getAttribute("workspace"); 230 datasource = layerElement.getAttribute("workspace");
226 datasource += File.separator; 231 datasource += File.separator;
227 } 232 }
228 datasource += layerElement.getAttribute("data_source"); 233 datasource += layerElement.getAttribute("data_source");
234 datasource = datasource.replaceAll("\\\\", "/");
229 layer.setData(datasource); 235 layer.setData(datasource);
230 } 236 }
231 else if(con_type.equals("SDE")) { 237 else if(con_type.equals("SDE")) {
232 logger.info( 238 logger.info(
233 "SDE datasource found." + 239 "SDE datasource found." +
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)