GeoTools
  1. GeoTools
  2. GEOT-1949

JMapPane highlight context should better use the same CoordinateReferenceSystem as the map context to avoid unnecessary transform

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.5-M3
    • Fix Version/s: 2.7-M0
    • Component/s: swing
    • Labels:
      None

      Description

      This line:
      MapContext highlightContext = new DefaultMapContext(DefaultGeographicCRS.WGS84);
      can be replace to
      MapContext highlightContext = new DefaultMapContext(context.getCoordinateReferenceSystem());

      to avoid unnecessary transform.
      The transform will cause issues if the map context CoordinateReferenceSystem can't be transform to DefaultGeographicCRS.WGS84.

        Activity

        Hide
        Jody Garnett added a comment -
        Leaving the new module maintainer to set their own release schedule and priorities.
        Show
        Jody Garnett added a comment - Leaving the new module maintainer to set their own release schedule and priorities.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: