[Webflysuesk-commits] r46 - in webflysuesk/branches/openlayers-integration: . webflys/src/main/java/de/intevation/webflys/model webflys/src/main/webapp/pages

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Mar 31 16:27:35 CEST 2009


Author: iweinzierl
Date: 2009-03-31 16:27:35 +0200 (Tue, 31 Mar 2009)
New Revision: 46

Modified:
   webflysuesk/branches/openlayers-integration/ChangeLog.txt
   webflysuesk/branches/openlayers-integration/webflys/src/main/java/de/intevation/webflys/model/River.java
   webflysuesk/branches/openlayers-integration/webflys/src/main/webapp/pages/karte.js
Log:
Projection changed to EPSG:31466 for further implementation.

Modified: webflysuesk/branches/openlayers-integration/ChangeLog.txt
===================================================================
--- webflysuesk/branches/openlayers-integration/ChangeLog.txt	2009-03-30 16:35:26 UTC (rev 45)
+++ webflysuesk/branches/openlayers-integration/ChangeLog.txt	2009-03-31 14:27:35 UTC (rev 46)
@@ -1,3 +1,10 @@
+2009-03-31  Ingo Weinzierl <ingo.weinzierl at intevation.de>
+
+	* webflys/src/main/java/de/intevation/webflys/model/River.java,
+	  webflys/src/main/webapp/pages/karte.js: Projection of all layers changed
+	  for further implementation to EPSG:31466. Later there will be an option to
+	  change the projection to support other areas on earth.
+
 2009-03-30  Ingo Weinzierl <ingo.weinzierl at intevation.de>
 
 	* webflys/src/main/webapp/pages/karte.js: Feature completed. The user is

Modified: webflysuesk/branches/openlayers-integration/webflys/src/main/java/de/intevation/webflys/model/River.java
===================================================================
--- webflysuesk/branches/openlayers-integration/webflys/src/main/java/de/intevation/webflys/model/River.java	2009-03-30 16:35:26 UTC (rev 45)
+++ webflysuesk/branches/openlayers-integration/webflys/src/main/java/de/intevation/webflys/model/River.java	2009-03-31 14:27:35 UTC (rev 46)
@@ -122,17 +122,17 @@
 
         BBox[] boxes = {
             new BBox(
-            6.5166181515507615, 49.166960703640434,
-            7.071726699026244, 49.72876558358557) ,
+                2537688.11745, 5448107.69465,
+                2577286.32555,5510174.03635),
             new BBox(
-                5.8973842508272325, 49.00593609353314,
-                8.513166819648188, 51.92111268724259)
+                2483395.927420062, 5413312.395386013,
+                2693249.109086074, 5773180.322826077)
         };
 
         if( name.equals( "Saar" ) )
             return boxes[0];
 
-        else if( name.equals( "Rhein" ) )
+        else if( name.equals( "Mosel" ) )
             return boxes[1];
 
         else

Modified: webflysuesk/branches/openlayers-integration/webflys/src/main/webapp/pages/karte.js
===================================================================
--- webflysuesk/branches/openlayers-integration/webflys/src/main/webapp/pages/karte.js	2009-03-30 16:35:26 UTC (rev 45)
+++ webflysuesk/branches/openlayers-integration/webflys/src/main/webapp/pages/karte.js	2009-03-31 14:27:35 UTC (rev 46)
@@ -54,10 +54,10 @@
     // set map options
     var options = {
         controls: control,
-        maxExtent: new OpenLayers.Bounds(-180,-90,180,90),
+        maxExtent: new OpenLayers.Bounds(2000000, 5000000 ,4000000, 7000000),
         maxResolution: 'auto',
         numZoomLevels: 15,
-        projection: 'EPSG:4326',
+        projection: 'EPSG:31466',
         units: 'm'
     };
     map = new OpenLayers.Map('map', options);
@@ -103,9 +103,9 @@
         "Rohre, Gräben, Dämme",
         {
             strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy],
-            projection: new OpenLayers.Projection("EPSG:4326"),
+            projection: new OpenLayers.Projection("EPSG:31466"),
             protocol: new OpenLayers.Protocol.WFS({
-                srsName: "EPSG:4326",
+                srsName: "EPSG:31466",
                 url: "http://beige.rgb:8080/geoserver/wfs",
                 featureType: "rohre_graben_damm",
                 featureNS: "http://www.openplans.org/topp",



More information about the Webflysuesk-commits mailing list