Uploaded image for project: 'Spatial Information Systems'
  1. Spatial Information Systems
  2. SIS-472

Unexpected lost of vertical coordinate

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.0
    • None
    • Referencing
    • None

    Description

      Conversion from projected (x,y,h) to geographic (φ,λ,H) coordinates causes the lost of vertical coordinates, which is set to NaN. Actually given that operation implies a transformation from geoidal to ellipsoidal height and SIS-362 is not yet fixed, we would rather expect an exception to be thrown. Code to reproduce:

      import org.apache.sis.referencing.CRS;
      import org.apache.sis.referencing.CommonCRS;
      import org.opengis.referencing.crs.CoordinateReferenceSystem;
      import org.opengis.referencing.operation.CoordinateOperation;
      
      final class Test {
          public static void main(String[] args) throws Exception {
              CoordinateReferenceSystem sourceCRS = CRS.compound(CRS.forCode("EPSG:2154"), CommonCRS.Vertical.MEAN_SEA_LEVEL.crs());
              CoordinateReferenceSystem targetCRS = CommonCRS.WGS84.geographic3D();
              CoordinateOperation op = CRS.findOperation(sourceCRS, targetCRS, null);
              System.out.println(op);
              System.out.println();
              System.out.println(op.getMathTransform());
          }
      }
      

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            desruisseaux Martin Desruisseaux

            Dates

              Created:
              Updated:

              Slack

                Issue deployment