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

Add an AngleRange class for latitude/longitude ranges

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: 0.6
    • Component/s: Referencing, Utilities
    • Labels:
      None

      Description

      The Range class has a NumberRange subclass for the special case of Number values, which itself has a MeasurementRange subclass for numbers with a unit of measurement. We would like an AngleRange subclass of Range for Angle values with units fixed to degrees (the units used by the existing Angle). We can not use NumberRange for this purpose because Angle does not extend Number (we could modify Angle class, but extending Number has proven to be source of confusion in the past).

      More specifically the work to do would be:

      • Creates class AngleRange extends Range.
      • Override unit() with a hard-coded NonSI.DEGREE_ANGLE return value.
      • Consider making the unit() method a public one. If this change is applied, search for Measurement.unit() usage and see if we should replace them by Range.unit().
      • Add createLongitude and createLatitude convenience methods in ParameterBuilder.
      • Modify the DefaultParameterDescriptorGroup, ParameterBuilder and ParameterFormat examples in javadoc for making use of angular values in Latitude of natural origin and Longitude of natural origin parameters.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                desruisseaux Martin Desruisseaux
                Reporter:
                desruisseaux Martin Desruisseaux
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: