sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Desruisseaux (JIRA)" <>
Subject [jira] [Updated] (SIS-165) Add an AngleRange class for latitude/longitude ranges
Date Tue, 03 Feb 2015 21:08:35 GMT


Martin Desruisseaux updated SIS-165:
    Fix Version/s:     (was: 0.5)

> Add an AngleRange class for latitude/longitude ranges
> -----------------------------------------------------
>                 Key: SIS-165
>                 URL:
>             Project: Spatial Information Systems
>          Issue Type: Improvement
>          Components: Referencing, Utilities
>            Reporter: Martin Desruisseaux
>            Assignee: Martin Desruisseaux
>            Priority: Minor
>             Fix For: 0.6
> 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.

This message was sent by Atlassian JIRA

View raw message