Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: Version 5.0
    • Fix Version/s: None
    • Component/s: Geography
    • Labels:
      None

      Description

      The method 'getCentralMeridian(int, char)' in 'org.jscience.geography.coordinates.UTM.java' makes exceptions for several zones.
      But the central meridian depends only on the identifier of the longitudeZone.
      The zone 32V is extended on the left side by 3°, even the zone 37X.
      The zone 31V is cutted on right side by 3°, 31X is extended on right side. 33X and 35X are extended on both sides.
      The central meridian for UTM stands in all cases on its original position.
      The only exceptions are the polar zones, which has no central meridian.

      So this is sufficient:

      public static double getCentralMeridian(int longitudeZone, char latitudeZone) {
      // polar zones
      if (latitudeZone < 'C' || latitudeZone > 'X')

      { return 0.0; }

      return (longitudeZone - 1) * 6 - 180 + 3;
      }

      Peer-Cedric Hänsel

        Activity

        dautelle created issue -

          People

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

            Dates

            • Created:
              Updated: