sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject svn commit: r1800823 - /sis/branches/JDK8/core/sis-referencing/src/main/java/org/apache/sis/referencing/operation/builder/LocalizationGridBuilder.java
Date Tue, 04 Jul 2017 21:25:32 GMT
Author: desruisseaux
Date: Tue Jul  4 21:25:32 2017
New Revision: 1800823

URL: http://svn.apache.org/viewvc?rev=1800823&view=rev
Log:
Optimisation for linear case was missing the pre-concatenation with 'sourceToGrid' transform.

Modified:
    sis/branches/JDK8/core/sis-referencing/src/main/java/org/apache/sis/referencing/operation/builder/LocalizationGridBuilder.java

Modified: sis/branches/JDK8/core/sis-referencing/src/main/java/org/apache/sis/referencing/operation/builder/LocalizationGridBuilder.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-referencing/src/main/java/org/apache/sis/referencing/operation/builder/LocalizationGridBuilder.java?rev=1800823&r1=1800822&r2=1800823&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-referencing/src/main/java/org/apache/sis/referencing/operation/builder/LocalizationGridBuilder.java
[UTF-8] (original)
+++ sis/branches/JDK8/core/sis-referencing/src/main/java/org/apache/sis/referencing/operation/builder/LocalizationGridBuilder.java
[UTF-8] Tue Jul  4 21:25:32 2017
@@ -336,7 +336,7 @@ public class LocalizationGridBuilder ext
             }
         }
         if (isExact) {
-            return gridToCoord;
+            return MathTransforms.concatenate(sourceToGrid, gridToCoord);
         }
         final int      width    = linear.gridSize(0);
         final int      height   = linear.gridSize(1);
@@ -387,7 +387,7 @@ public class LocalizationGridBuilder ext
             throw new FactoryException(e);                                          // Should
never happen.
         }
         if (isLinear) {
-            return gridToCoord;
+            return MathTransforms.concatenate(sourceToGrid, gridToCoord);
         }
         return InterpolatedTransform.createGeodeticTransformation(nonNull(factory),
                 new ResidualGrid(sourceToGrid, gridToCoord, width, height, tgtDim, residual,



Mime
View raw message