uDIG
  1. uDIG
  2. UDIG-1409

The theme creator in the Style Editor dialog box does not properly handle bounds for numbers between 0 and 1

    Details

      Description

      • Open the Style Editor of a map layer.
      • The map layer is required to have a number of sub-regions with a different number between 0 and 1 (that do NOT sum to 1).
      • Selecting style editor -> theme -> appropriate attribute of map with unrelated values from 0 to 1
      • Select break-> equal interval
      • Select appropriate colour range palette.
      • Press Apply and Okay

      Use the following list of values from 0-1:
      -0.02
      0.43
      0.25
      0.16
      -0.10
      -0.03
      -0.13
      0.20
      -0.23
      0.03
      -0.24

      The resulting map will have ranges in the legend from:
      -0.2, -0.1
      -0.1, 0.1
      0.1, 0.3
      0.3, 0.4

      The resulting map will have mis-categorized the region associated with 0.43 and -0.23
      Actually, the bounds calculated are just wrong.

      Note: if you multiply the list above by 100, and follow all of the steps, then the regions (and bounds) appear as expected.

        Activity

        Hide
        JMac added a comment -
        As additional information. Here are screenshots of the same map, using the same numbers, except now they have been multiplied by 100. (ie. No longer between 0 and 1)
        Show
        JMac added a comment - As additional information. Here are screenshots of the same map, using the same numbers, except now they have been multiplied by 100. (ie. No longer between 0 and 1)
        Hide
        Jody Garnett added a comment -
        Andrea has made the change to allow this on the rendering side; so we need a user interface change to show that off in udig.
        Show
        Jody Garnett added a comment - Andrea has made the change to allow this on the rendering side; so we need a user interface change to show that off in udig.
        Hide
        Jody Garnett added a comment -
        So how about it - can we allow doubles (rather than only intergers) in the 10 min code sprint?
        Show
        Jody Garnett added a comment - So how about it - can we allow doubles (rather than only intergers) in the 10 min code sprint?

          People

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

            Dates

            • Created:
              Updated: