comparison flys-artifacts/src/main/java/de/intevation/flys/utils/RiverMapfileGenerator.java @ 5540:25c2505df28f

Merged
author Christian Lins <christian.lins@intevation.de>
date Wed, 03 Apr 2013 16:00:21 +0200
parents ae60bb7b8085
children
comparison
equal deleted inserted replaced
5539:8d0af912351c 5540:25c2505df28f
114 if (FLYSUtils.isUsingOracle()) { 114 if (FLYSUtils.isUsingOracle()) {
115 layerInfo.setData("geom FROM river_axes USING SRID " + srid); 115 layerInfo.setData("geom FROM river_axes USING SRID " + srid);
116 } else { 116 } else {
117 layerInfo.setData("geom FROM river_axes"); 117 layerInfo.setData("geom FROM river_axes");
118 } 118 }
119 layerInfo.setFilter("river_id = " + riverID); 119 layerInfo.setFilter("river_id = " + riverID + " and kind_id = 1");
120 layerInfo.setTitle(riverName + " RiverAxis"); 120 layerInfo.setTitle(riverName + " RiverAxis");
121 121
122 File layerFile = new File("river-" + riverName + ".map"); 122 File layerFile = new File("river-" + riverName + ".map");
123 Template template = getTemplateByName("riveraxis-layer.vm"); 123 Template template = getTemplateByName("riveraxis-layer.vm");
124 if (template == null) { 124 if (template == null) {

http://dive4elements.wald.intevation.org