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

Transformation of envelope from UTM to WGS84 sometime wrongly expanded to the ±180° longitude range

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.7
    • 0.8
    • Referencing
    • None

    Description

      Consider the following envelope in UTM 30N (EPSG code 32630). Note that the longitude range crosses the limit of the CRS domain of validity, which is -6° to 0°:

      BOX(199980 4490220, 309780 4600020)
      

      Transformation to WGS84 (EPSG code 4326) should give something close to:

      BOX(-6.5941 40.5085, -5.2462 41.5292)
      

      but we get:

      BOX(-180 40.5085, +180 41.5292)
      

      The longitude range (-6.6° to -5.2°) has been expanded to ±180°. This is because the Envelopes.transform(…) method verifies if the given envelope contains a "singularity" (typically a pole), and the ±180° longitude are wrongly identified as contained singularities in this particular case.

      Attachments

        Activity

          People

            desruisseaux Martin Desruisseaux
            desruisseaux Martin Desruisseaux
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: