[
https://issues.apache.org/jira/browse/SIS-165?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Martin Desruisseaux updated SIS-165:
------------------------------------
Fix Version/s: (was: 0.5)
0.6
> Add an AngleRange class for latitude/longitude ranges
> -----------------------------------------------------
>
> Key: SIS-165
> URL: https://issues.apache.org/jira/browse/SIS-165
> 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
(v6.3.4#6332)