sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject [sis] branch geoapi-4.0 updated: Fix wrong CRS reported reported by getPositionCRS() and getGeographicCRS().
Date Thu, 16 May 2019 13:11:20 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


The following commit(s) were added to refs/heads/geoapi-4.0 by this push:
     new 2585b23  Fix wrong CRS reported reported by getPositionCRS() and getGeographicCRS().
2585b23 is described below

commit 2585b2325d03a144671e2bda7af73c273c638349
Author: Martin Desruisseaux <martin.desruisseaux@geomatys.com>
AuthorDate: Thu May 16 15:10:03 2019 +0200

    Fix wrong CRS reported reported by getPositionCRS() and getGeographicCRS().
---
 .../src/main/java/org/apache/sis/referencing/GeodeticCalculator.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/core/sis-referencing/src/main/java/org/apache/sis/referencing/GeodeticCalculator.java
b/core/sis-referencing/src/main/java/org/apache/sis/referencing/GeodeticCalculator.java
index 443a01c..d474b26 100644
--- a/core/sis-referencing/src/main/java/org/apache/sis/referencing/GeodeticCalculator.java
+++ b/core/sis-referencing/src/main/java/org/apache/sis/referencing/GeodeticCalculator.java
@@ -215,7 +215,7 @@ public class GeodeticCalculator {
      * @return the default CRS for {@link Position} instances.
      */
     public CoordinateReferenceSystem getPositionCRS() {
-        return userToGeodetic.getCoordinateReferenceSystem();
+        return userToGeodetic.defaultCRS;
     }
 
     /**
@@ -226,7 +226,7 @@ public class GeodeticCalculator {
      * @return the coordinate reference system of (φ,λ) coordinates.
      */
     public GeographicCRS getGeographicCRS() {
-        return (GeographicCRS) userToGeodetic.defaultCRS;
+        return (GeographicCRS) userToGeodetic.getCoordinateReferenceSystem();
     }
 
     /**


Mime
View raw message