GeoTools
  1. GeoTools
  2. GEOT-1720

CRS 3D to 2D transformations incomplete

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.1, 2.5-M0
    • Fix Version/s: 2.5.0, 2.6-M0
    • Component/s: referencing
    • Labels:
      None

      Description

      We need explicitly add in the use of getHorizontalCRS throughout the library:

      CoordinateReferenceSystem crs3d = CRS.decode("EPSG:4327");
      CoordinateReferenceSystem crs2d = CRS.getHorizontalCRS( crs3d );
      

      This functionality is needed in two places:

      • In PostGISDataStore when the Hints.FEAUTRE_2D hint is applied we need to generate a CRS that matchs the data with the 3d axis dropped

      Other applications that are used to the 2D assumption will need ot make use of this functionality:

      • In GeoServer when we generate lat/lon bbox we need to reproject from 3d data to WGS84
      1. crs.patch
        3 kB
        Andrea Aime
      2. CRSTest.patch
        2 kB
        Andrea Aime

        Issue Links

          Activity

          Hide
          Andrea Aime added a comment -
          Sure thing, I'll provide one shortly
          Show
          Andrea Aime added a comment - Sure thing, I'll provide one shortly
          Hide
          Andrea Aime added a comment -
          Here is a patch for CRSTest, it checks extraction of the horizontal part from both a compound and a geographic 3d CRS
          Show
          Andrea Aime added a comment - Here is a patch for CRSTest, it checks extraction of the horizontal part from both a compound and a geographic 3d CRS
          Hide
          Martin Desruisseaux added a comment -
          Merged to the 2.5 branch. Added the test case to trunk.
          Show
          Martin Desruisseaux added a comment - Merged to the 2.5 branch. Added the test case to trunk.
          Hide
          Andrea Aime added a comment -
          Great, thanks a lot :)
          Show
          Andrea Aime added a comment - Great, thanks a lot :)
          Hide
          Andrea Aime added a comment -
          Mass closing all issues that have been in "resolved" state for 2 months or more without any feedback or update
          Show
          Andrea Aime added a comment - Mass closing all issues that have been in "resolved" state for 2 months or more without any feedback or update

            People

            • Assignee:
              Martin Desruisseaux
              Reporter:
              Jody Garnett
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: