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

Martin Desruisseaux resolved SIS-195.
-------------------------------------
    Resolution: Fixed

> DefaultResolution(RepresentativeFraction) constructor does not correctly 
> store the given argument
> -------------------------------------------------------------------------------------------------
>
>                 Key: SIS-195
>                 URL: https://issues.apache.org/jira/browse/SIS-195
>             Project: Spatial Information Systems
>          Issue Type: Bug
>          Components: Metadata
>    Affects Versions: 0.5
>            Reporter: Martin Desruisseaux
>            Assignee: Martin Desruisseaux
>              Labels: regression
>             Fix For: 0.6
>
>
> Previous SIS version contains the following constructor
> {code:java}
>     public DefaultResolution(final RepresentativeFraction scale) {
>         value = scale;
>     }
> {code}
> But as of SIS 0.5, this is no longer sufficient since our new internal 
> implementation requires us to declare if the value is a scale, horizontal 
> distance, vertical distance, angular distance or a text. Since SIS 0.5 forget 
> this declaration, {{getEquivalentScale()}} method returns {{null}} instead of 
> the given instance.
> The fix is to change the implementation as below:
> {code:java}
>     public DefaultResolution(final RepresentativeFraction scale) {
>         if (scale != null) {
>             value = scale;
>             property = SCALE;
>         }
>     }
> {code}
> Note that this bug is a SIS 0.5 regression compared to SIS 0.4 and 0.3



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to