comparison 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
comparison
equal deleted inserted replaced
1069:0d15e515f88d 1070:7096a2e13676
92 private String ijkQueryID; 92 private String ijkQueryID;
93 93
94 private Boolean shapeFileLock = new Boolean(true); 94 private Boolean shapeFileLock = new Boolean(true);
95 95
96 private String shapeFilePath; 96 private String shapeFilePath;
97
98 private Envelope bbox = null;
97 99
98 /** 100 /**
99 * Constructor 101 * Constructor
100 */ 102 */
101 public HorizontalCrossSectionMeshOutputState() { 103 public HorizontalCrossSectionMeshOutputState() {
332 data = getLayerData(uuid, ISOLINES_NAME); 334 data = getLayerData(uuid, ISOLINES_NAME);
333 MetaWriter.insertLayer( 335 MetaWriter.insertLayer(
334 callContext, meta, name, title, data, model, type, status); 336 callContext, meta, name, title, data, model, type, status);
335 337
336 if (meta != null) { 338 if (meta != null) {
339 MetaWriter.insertMbr(this.bbox, "EPSG:4326", meta);
337 MetaWriter.writeMetaFile(path, meta); 340 MetaWriter.writeMetaFile(path, meta);
338 MapfileGenerator.getInstance().update(); 341 MapfileGenerator.getInstance().update();
339 return meta; 342 return meta;
340 } 343 }
341 344
613 } 616 }
614 617
615 try { 618 try {
616 Envelope env = p.getEnvelopeInternal(); 619 Envelope env = p.getEnvelopeInternal();
617 620
621 this.bbox = env;
618 String additionWhere; 622 String additionWhere;
619 623
620 if (USE_INDEX_BUFFER) { 624 if (USE_INDEX_BUFFER) {
621 Coordinate [] coords = new Coordinate [] { 625 Coordinate [] coords = new Coordinate [] {
622 new Coordinate(env.getMinX(), env.getMinY()), 626 new Coordinate(env.getMinX(), env.getMinY()),

http://dive4elements.wald.intevation.org