sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject [sis] 01/03: Fix wrong coordinate reference system used for transforming the points returned by GeodeticCalculator.
Date Sat, 18 May 2019 13:15:17 GMT
This is an automated email from the ASF dual-hosted git repository.

desruisseaux pushed a commit to branch geoapi-4.0
in repository https://gitbox.apache.org/repos/asf/sis.git

commit f3f9bc379f472b1770d5bb95a7f572dc92bbebb9
Author: Martin Desruisseaux <martin.desruisseaux@geomatys.com>
AuthorDate: Sat May 18 15:07:45 2019 +0200

    Fix wrong coordinate reference system used for transforming the points returned by GeodeticCalculator.
---
 .../java/org/apache/sis/internal/referencing/PositionTransformer.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/sis-referencing/src/main/java/org/apache/sis/internal/referencing/PositionTransformer.java
b/core/sis-referencing/src/main/java/org/apache/sis/internal/referencing/PositionTransformer.java
index 707c8bd..87c2661 100644
--- a/core/sis-referencing/src/main/java/org/apache/sis/internal/referencing/PositionTransformer.java
+++ b/core/sis-referencing/src/main/java/org/apache/sis/internal/referencing/PositionTransformer.java
@@ -233,7 +233,7 @@ public final class PositionTransformer extends GeneralDirectPosition {
      * @throws TransformException if a coordinate transformation was required and failed.
      */
     public DirectPosition inverseTransform() throws TransformException {
-        return inverse().transform(this, new GeneralDirectPosition(getCoordinateReferenceSystem()));
+        return inverse().transform(this, new GeneralDirectPosition(defaultCRS));
     }
 
     /**


Mime
View raw message