changeset 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 5fced192b95c
children e20307be4cc3
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/wsplgen/FacetCreator.java
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Thu Sep 27 11:12:38 2012 +0000
+++ b/flys-artifacts/ChangeLog	Thu Sep 27 11:54:10 2012 +0000
@@ -1,3 +1,8 @@
+2012-09-27  Ingo Weinzierl <ingo@intevation.de>
+
+	* src/main/java/de/intevation/flys/wsplgen/FacetCreator.java: Set
+	  missing 'originalExtent' attribute of the WSPLGEN layer.
+
 2012-09-27	Felix Wolfsteller	<felix.wolfsteller@intevation.de>
 
 	Towards fix issue863 (gaps in middle height bed data).
--- 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