GeoTools
  1. GeoTools
  2. GEOT-3443

Need support for transformation from 2D to 3D CRS

    Details

    • Type: Improvement Improvement
    • Status: Open Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.7-M5
    • Fix Version/s: None
    • Component/s: referencing
    • Labels:
      None

      Description

      For details please see:

      https://sourceforge.net/mailarchive/message.php?msg_id=27058438

      It seems that the the geootools referencing module should support transformation between a source 2D CRS and a target 3D CRS as long as it is able to transform in the other direction. In such cases the transformation should simply set a value of zero for the Z-axis (third axis).

        Activity

        Hide
        Farrukh Najmi added a comment -
        Patch file that at least allows for a transformation matrix to be returned when the targetCRS has more dimensions than the sourceCRS.
        This still require client code adding a zero value for Z-Axis to targetGeometry after using JTS.transform.
        Show
        Farrukh Najmi added a comment - Patch file that at least allows for a transformation matrix to be returned when the targetCRS has more dimensions than the sourceCRS. This still require client code adding a zero value for Z-Axis to targetGeometry after using JTS.transform.
        Hide
        Farrukh Najmi added a comment -
        This patch contains what I believe is a fix for the issue. It makes sure that any 2D CRS transformed to 3D CRS gets a zero value for the Z axis.
        As an aside, in working on the patch I realized that the JTS library underlying geotools only supports spatial operations on the X/Y axis and ignores the Z-Axis.
        This makes my original reason for needing to transform from 2D CRS to 3D CRS somewhat pointless :-(

        Can someone please confirm that JTS does not support 3D spatial operations. Thanks.
        Show
        Farrukh Najmi added a comment - This patch contains what I believe is a fix for the issue. It makes sure that any 2D CRS transformed to 3D CRS gets a zero value for the Z axis. As an aside, in working on the patch I realized that the JTS library underlying geotools only supports spatial operations on the X/Y axis and ignores the Z-Axis. This makes my original reason for needing to transform from 2D CRS to 3D CRS somewhat pointless :-( Can someone please confirm that JTS does not support 3D spatial operations. Thanks.

          People

          • Assignee:
            Unassigned
            Reporter:
            Farrukh Najmi
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: