diff flys-artifacts/src/main/java/de/intevation/flys/utils/MapfileGenerator.java @ 1642:6c0b79efd2c9

Bugfix: #320 Substitue '../' in shapefile directories. flys-artifacts/trunk@2829 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 27 Sep 2011 07:41:21 +0000
parents bcf70a452646
children 055f32a5388a
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/utils/MapfileGenerator.java	Mon Sep 26 15:35:46 2011 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/utils/MapfileGenerator.java	Tue Sep 27 07:41:21 2011 +0000
@@ -394,7 +394,7 @@
             context.put("MAPSERVERURL",
                 FLYSUtils.getXPathString(FLYSUtils.XPATH_MAPSERVER_URL));
             context.put("SHAPEFILEPATH",
-                FLYSUtils.getXPathString(FLYSUtils.XPATH_SHAPEFILE_DIR));
+                getShapefileBaseDir().getCanonicalPath());
             context.put("LAYERS", fillLayerTemplates(layers));
 
             Template mapTemplate = getMapfileTemplate();

http://dive4elements.wald.intevation.org