diff flys-artifacts/src/main/java/de/intevation/flys/utils/MapfileGenerator.java @ 2669:7a124cb11d8e

Added a PROJECTION section to all db mapserver layers. flys-artifacts/trunk@4355 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 08 May 2012 10:19:43 +0000
parents a78dafdd8590
children 453d2d0c4258
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/utils/MapfileGenerator.java	Mon May 07 13:27:45 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/utils/MapfileGenerator.java	Tue May 08 10:19:43 2012 +0000
@@ -392,6 +392,7 @@
                                             "floodmap.uesk",
                                             "Floodmap"));
         layerinfo.setStyle(style);
+        layerinfo.setSrid(wms.getSrid());
 
         String name = MS_LAYER_PREFIX + wms.getName();
 
@@ -458,6 +459,7 @@
         lineInfo.setTitle("I18N_LINE_SHAPE");
         lineInfo.setGroup(group);
         lineInfo.setGroupTitle(groupTitle);
+        lineInfo.setSrid(wms.getSrid());
 
         String nameLines = MS_LAYER_PREFIX + wms.getName() + "-lines";
 
@@ -503,6 +505,7 @@
         polygonInfo.setTitle("I18N_POLYGON_SHAPE");
         polygonInfo.setGroup(group);
         polygonInfo.setGroupTitle(groupTitle);
+        polygonInfo.setSrid(wms.getSrid());
 
         String namePolygons = MS_LAYER_PREFIX + wms.getName() + "-polygons";
 
@@ -567,6 +570,7 @@
         info.setTitle("I18N_USER_SHAPE");
         info.setGroup(group);
         info.setGroupTitle(groupTitle);
+        info.setSrid(wms.getSrid());
 
         String nameUser = MS_LAYER_PREFIX + wms.getName();
 
@@ -614,6 +618,7 @@
         layerinfo.setConnection(wms.getConnection());
         layerinfo.setConnectionType(wms.getConnectionType());
         layerinfo.setLabelItem(wms.getLabelItem());
+        layerinfo.setSrid(wms.getSrid());
 
         String name = MS_LAYER_PREFIX + wms.getName();
 

http://dive4elements.wald.intevation.org