diff flys-artifacts/src/main/java/de/intevation/flys/wsplgen/FacetCreator.java @ 3925:36147ddb2c32

Set the missing 'originalExtent' attribute for WSPLGEN layers. flys-artifacts/trunk@5615 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 27 Sep 2012 11:54:10 +0000
parents 453d2d0c4258
children 6ccdcb956c14
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/wsplgen/FacetCreator.java	Thu Sep 27 11:12:38 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/wsplgen/FacetCreator.java	Thu Sep 27 11:54:10 2012 +0000
@@ -94,6 +94,7 @@
         Envelope envB = b.getGeom().getEnvelopeInternal();
 
         envA.expandToInclude(envB);
+        envA = GeometryUtils.transform(envA, getSrid());
 
         logger.debug("###    => " + envA);
 
@@ -130,6 +131,7 @@
         wsplgen.addLayer(
             MapfileGenerator.MS_WSPLGEN_PREFIX + artifact.identifier());
         wsplgen.setSrid(getSrid());
+        wsplgen.setOriginalExtent(bounds);
         wsplgen.setExtent(bounds);
 
         tmpFacets.add(wsplgen);

http://dive4elements.wald.intevation.org