sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject svn commit: r1468043 - /sis/branches/JDK7/sis-referencing/src/test/java/org/apache/sis/geometry/SubEnvelopeTest.java
Date Mon, 15 Apr 2013 13:20:00 GMT
Author: desruisseaux
Date: Mon Apr 15 13:20:00 2013
New Revision: 1468043

URL: http://svn.apache.org/r1468043
Log:
WGS84 CRS was set on the wrong envelope.

Modified:
    sis/branches/JDK7/sis-referencing/src/test/java/org/apache/sis/geometry/SubEnvelopeTest.java

Modified: sis/branches/JDK7/sis-referencing/src/test/java/org/apache/sis/geometry/SubEnvelopeTest.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK7/sis-referencing/src/test/java/org/apache/sis/geometry/SubEnvelopeTest.java?rev=1468043&r1=1468042&r2=1468043&view=diff
==============================================================================
--- sis/branches/JDK7/sis-referencing/src/test/java/org/apache/sis/geometry/SubEnvelopeTest.java
[UTF-8] (original)
+++ sis/branches/JDK7/sis-referencing/src/test/java/org/apache/sis/geometry/SubEnvelopeTest.java
[UTF-8] Mon Apr 15 13:20:00 2013
@@ -44,13 +44,14 @@ public final strictfp class SubEnvelopeT
     @Override
     GeneralEnvelope create(final double xmin, final double ymin, final double xmax, final
double ymax) {
         final GeneralEnvelope envelope = new GeneralEnvelope(5);
-        envelope.setCoordinateReferenceSystem(WGS84);
         envelope.setEnvelope(1, 4, xmin, ymin, 5,
                              2, 7, xmax, ymax, 9);
         if (PENDING_NEXT_GEOAPI_RELEASE) {
             validate(envelope);
         }
-        return envelope.subEnvelope(2, 4);
+        final GeneralEnvelope sub = envelope.subEnvelope(2, 4);
+        sub.setCoordinateReferenceSystem(WGS84);
+        return sub;
     }
 
     /**



Mime
View raw message