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

DefaultResolution(RepresentativeFraction) constructor does not correctly store the given argument

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.5
    • 0.6
    • Metadata

    Description

      Previous SIS version contains the following constructor

          public DefaultResolution(final RepresentativeFraction scale) {
              value = scale;
          }
      

      But as of SIS 0.5, this is no longer sufficient since our new internal implementation requires us to declare if the value is a scale, horizontal distance, vertical distance, angular distance or a text. Since SIS 0.5 forget this declaration, getEquivalentScale() method returns null instead of the given instance.

      The fix is to change the implementation as below:

          public DefaultResolution(final RepresentativeFraction scale) {
              if (scale != null) {
                  value = scale;
                  property = SCALE;
              }
          }
      

      Note that this bug is a SIS 0.5 regression compared to SIS 0.4 and 0.3

      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: