comparison 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
comparison
equal deleted inserted replaced
1641:eb3ab28d1c21 1642:6c0b79efd2c9
392 392
393 VelocityContext context = new VelocityContext(); 393 VelocityContext context = new VelocityContext();
394 context.put("MAPSERVERURL", 394 context.put("MAPSERVERURL",
395 FLYSUtils.getXPathString(FLYSUtils.XPATH_MAPSERVER_URL)); 395 FLYSUtils.getXPathString(FLYSUtils.XPATH_MAPSERVER_URL));
396 context.put("SHAPEFILEPATH", 396 context.put("SHAPEFILEPATH",
397 FLYSUtils.getXPathString(FLYSUtils.XPATH_SHAPEFILE_DIR)); 397 getShapefileBaseDir().getCanonicalPath());
398 context.put("LAYERS", fillLayerTemplates(layers)); 398 context.put("LAYERS", fillLayerTemplates(layers));
399 399
400 Template mapTemplate = getMapfileTemplate(); 400 Template mapTemplate = getMapfileTemplate();
401 if (mapTemplate == null) { 401 if (mapTemplate == null) {
402 logger.warn("No mapfile template found."); 402 logger.warn("No mapfile template found.");

http://dive4elements.wald.intevation.org