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

DefaultResolution.isEmpty() and prune() do not detect when RepresentativeFraction is empty

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.3, 0.4, 0.5
    • 0.6
    • Metadata
    • None

    Description

      Newly constructed DefaultRepresentativeFraction, or instance on which setScale(Double.NaN) has been invoked, should be considered empty. But call to DefaultResolution.isEmpty() does not detect those cases.

      This because unlike all other metadata object, DefaultRepresentativeFraction does not extend AbstractMetadata. It extends Number instead. The fix to to have DefaultRepresentativeFraction to implement the Emptiable interface.

      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: