changeset 5031:9c529b9de6b5

Use the DGM projection for all shapefiles ('talaue', 'barriers').
author Raimund Renkert <rrenkert@intevation.de>
date Wed, 20 Feb 2013 09:47:24 +0100
parents 5ae8b8b46323
children 4bf3b89b38d5
files flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/FloodMapState.java
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/FloodMapState.java	Wed Feb 20 08:43:00 2013 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/FloodMapState.java	Wed Feb 20 09:47:24 2013 +0100
@@ -408,8 +408,9 @@
         File         dir,
         WSPLGENJob   job
     ) {
+        String river   = artifact.getDataAsString("river");
         String geoJSON = artifact.getDataAsString("uesk.barriers");
-        String srid    = FLYSUtils.getRiverSrid(artifact);
+        String srid    = FLYSUtils.getRiverDGMSrid(river);
         String srs     = "EPSG:" + srid;
 
         if (geoJSON == null || geoJSON.length() == 0) {
@@ -719,7 +720,7 @@
         }
 
         String river = artifact.getDataAsString("river");
-        String srid  = FLYSUtils.getRiverSrid(artifact);
+        String srid  = FLYSUtils.getRiverDGMSrid(river);
         String srs   = "EPSG:" + srid;
 
         Floodplain plain = Floodplain.getFloodplain(river);

http://dive4elements.wald.intevation.org