sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Desruisseaux (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SIS-376) Geographic/geocentric conversion fails if the geographic CRS is two-dimensional
Date Fri, 24 Nov 2017 11:33:00 GMT
Martin Desruisseaux created SIS-376:
---------------------------------------

             Summary: Geographic/geocentric conversion fails if the geographic CRS is two-dimensional
                 Key: SIS-376
                 URL: https://issues.apache.org/jira/browse/SIS-376
             Project: Spatial Information Systems
          Issue Type: Bug
          Components: Referencing
    Affects Versions: 0.8
            Reporter: Martin Desruisseaux
            Assignee: Martin Desruisseaux
             Fix For: 1.0


Following Java code:

{code:java}
GeographicCRS geographic = CommonCRS.WGS84.geographic();
GeocentricCRS geocentric = CommonCRS.WGS84.geocentric();
CRS.findOperation(geographic, geocentric, null);
{code}

fails with the following exception.

{noformat}
org.apache.sis.referencing.factory.InvalidGeodeticParameterException: Les transformations
« Affine parametric transformation » et « Geographic/geocentric conversions »
ne peuvent pas être combinées. Les dimensions des objets (2D et 3D) ne concordent pas.
    at org.apache.sis.referencing.operation.transform.DefaultMathTransformFactory.createConcatenatedTransform(DefaultMathTransformFactory.java:1313)
    at org.apache.sis.referencing.operation.transform.DefaultMathTransformFactory.swapAndScaleAxes(DefaultMathTransformFactory.java:1158)
    at org.apache.sis.referencing.operation.transform.DefaultMathTransformFactory.createParameterizedTransform(DefaultMathTransformFactory.java:1058)
    at org.apache.sis.referencing.operation.CoordinateOperationFinder.createOperationStep(CoordinateOperationFinder.java:572)
    at org.apache.sis.referencing.operation.CoordinateOperationFinder.createOperation(CoordinateOperationFinder.java:272)
    at org.apache.sis.referencing.operation.DefaultCoordinateOperationFactory.createOperation(DefaultCoordinateOperationFactory.java:814)
    at org.apache.sis.referencing.CRS.findOperation(CRS.java:644)
Caused by: org.opengis.geometry.MismatchedDimensionException: Les transformations « Affine
parametric transformation » et « Geographic/geocentric conversions » ne peuvent pas
être combinées. Les dimensions des objets (2D et 3D) ne concordent pas.
    at org.apache.sis.referencing.operation.transform.ConcatenatedTransform.create(ConcatenatedTransform.java:164)
    at org.apache.sis.referencing.operation.transform.DefaultMathTransformFactory.createConcatenatedTransform(DefaultMathTransformFactory.java:1311)
    ... 7 more
{noformat}

If we replace the call to {{geographic()}} by a call to {{geographic3D}}, then the code succeed
and the converted coordinates are corrects.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message