You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sis.apache.org by "Martin Desruisseaux (Jira)" <ji...@apache.org> on 2019/10/20 19:29:00 UTC

[jira] [Closed] (SIS-376) Geographic/geocentric conversion fails if the geographic CRS is two-dimensional

     [ https://issues.apache.org/jira/browse/SIS-376?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Desruisseaux closed SIS-376.
-----------------------------------

> 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.7, 0.8
>            Reporter: Martin Desruisseaux
>            Assignee: Martin Desruisseaux
>            Priority: Major
>             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
(v8.3.4#803005)