Mercurial > dive4elements > river
diff flys-artifacts/src/main/java/de/intevation/flys/utils/RiverMapfileGenerator.java @ 4702:13abfb1bcb75
Fix typo in class names and correct file path in floodmap.xml.
author | Christian Lins <christian.lins@intevation.de> |
---|---|
date | Mon, 17 Dec 2012 23:24:27 +0100 |
parents | 442fbb290fa8 |
children | 38ec171544de |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/utils/RiverMapfileGenerator.java Mon Dec 17 18:03:53 2012 +0100 +++ b/flys-artifacts/src/main/java/de/intevation/flys/utils/RiverMapfileGenerator.java Mon Dec 17 23:24:27 2012 +0100 @@ -6,6 +6,7 @@ import java.io.File; import java.io.FileNotFoundException; +import java.util.ArrayList; import java.util.List; import org.apache.log4j.Logger; @@ -20,15 +21,20 @@ */ @Override public void generate() { - List<River> rivers = RiverFactory.getRivers(); + logger.debug("generate()"); + + List<River> rivers = RiverFactory.getRivers(); + List<String> riverNames = new ArrayList<String>(); for (River river : rivers) { - createRiverAxisLayer( + /*createRiverAxisLayer( river.getName(), river.getId(), "41677", - "100,100,100,100"); + "100,100,100,100");*/ + riverNames.add(river.getName()); } + writeMapfile(riverNames); } protected void createRiverAxisLayer(String riverName, int riverID, String srid, String extend) {