diff gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/horizontalcrosssection/HorizontalCrossSectionMeshOutputState.java @ 1070:7096a2e13676

Added functionality to publish the the mbr of the generated layer to the client. gnv-artifacts/trunk@1166 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Mon, 07 Jun 2010 14:42:42 +0000
parents cc4ec127d666
children 19182eaccc8d
line wrap: on
line diff
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/horizontalcrosssection/HorizontalCrossSectionMeshOutputState.java	Mon Jun 07 12:22:00 2010 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/horizontalcrosssection/HorizontalCrossSectionMeshOutputState.java	Mon Jun 07 14:42:42 2010 +0000
@@ -94,6 +94,8 @@
     private Boolean shapeFileLock = new Boolean(true);
 
     private String shapeFilePath;
+    
+    private Envelope  bbox = null;
 
     /**
      * Constructor
@@ -334,6 +336,7 @@
                 callContext, meta, name, title, data, model, type, status);
 
             if (meta != null) {
+                MetaWriter.insertMbr(this.bbox, "EPSG:4326", meta);
                 MetaWriter.writeMetaFile(path, meta);
                 MapfileGenerator.getInstance().update();
                 return meta;
@@ -615,6 +618,7 @@
         try {
             Envelope env  = p.getEnvelopeInternal();
 
+            this.bbox = env;
             String additionWhere;
 
             if (USE_INDEX_BUFFER) {

http://dive4elements.wald.intevation.org