diff flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/MapInfoService.java @ 1774:092e1e5020bc

Added a new MapGenerator which only returns a map configuration document at the moment (work still in progress). flys-artifacts/trunk@3095 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Fri, 28 Oct 2011 05:54:25 +0000
parents b1b0a0b61845
children cbeeaaad1056
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/MapInfoService.java	Thu Oct 27 14:04:04 2011 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/MapInfoService.java	Fri Oct 28 05:54:25 2011 +0000
@@ -5,7 +5,7 @@
 import org.w3c.dom.Document;
 import org.w3c.dom.Element;
 
-import com.vividsolutions.jts.geom.Geometry;
+import com.vividsolutions.jts.geom.Envelope;
 
 import de.intevation.artifacts.CallMeta;
 import de.intevation.artifacts.GlobalContext;
@@ -79,8 +79,8 @@
 
         RiverAxis axis = RiverAxis.getRiverAxis(river);
         if (axis != null) {
-            Geometry geom   = axis.getGeom().getBoundary();
-            String   bounds = GeometryUtils.jtsBoundsToOLBounds(geom);
+            Envelope env    = axis.getGeom().getEnvelopeInternal();
+            String   bounds = GeometryUtils.jtsBoundsToOLBounds(env);
 
             logger.debug("River '" + river + "' bounds: " + bounds);
             Element bbox = cr.create("bbox");

http://dive4elements.wald.intevation.org