[Dive4elements-commits] [PATCH 1 of 2] Use the DGM projection for all shapefiles ('talaue', 'barriers')

Wald Commits scm-commit at wald.intevation.org
Wed Feb 20 09:53:44 CET 2013


# HG changeset patch
# User Raimund Renkert <rrenkert at intevation.de>
# Date 1361350044 -3600
# Node ID 9c529b9de6b5040ba5cdf764528b32def0289d35
# Parent  5ae8b8b46323ed076e55e88390b5fc61d7ad7dbf
Use the DGM projection for all shapefiles ('talaue', 'barriers').

diff -r 5ae8b8b46323 -r 9c529b9de6b5 flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/FloodMapState.java
--- 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);


More information about the Dive4elements-commits mailing list