sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Desruisseaux (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (SIS-165) Add an AngleRange class for latitude/longitude ranges
Date Mon, 07 Sep 2015 19:59:45 GMT

     [ https://issues.apache.org/jira/browse/SIS-165?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Martin Desruisseaux resolved SIS-165.
-------------------------------------
    Resolution: Won't Fix

Using {{Angle}} in {{ParameterValue}} would cause a conceptual problem since {{Angle}} is
explicitly defined as an angle in decimal degrees while {{ParameterValue}} can be in any unit.
We are probably better to continue to use {{Double}}.

> 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)

Mime
View raw message