[
https://issues.apache.org/jira/browse/SIS-194?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Martin Desruisseaux resolved SIS-194.
-------------------------------------
Resolution: Fixed
> DefaultResolution.isEmpty() and prune() do not detect when
> RepresentativeFraction is empty
> ------------------------------------------------------------------------------------------
>
> Key: SIS-194
> URL: https://issues.apache.org/jira/browse/SIS-194
> Project: Spatial Information Systems
> Issue Type: Bug
> Components: Metadata
> Affects Versions: 0.3, 0.4, 0.5
> Reporter: Martin Desruisseaux
> Assignee: Martin Desruisseaux
> Priority: Minor
> Fix For: 0.6
>
>
> Newly constructed {{DefaultRepresentativeFraction}}, or instance on which
> {{setScale(Double.NaN)}} has been invoked, should be considered empty. But
> call to {{DefaultResolution.isEmpty()}} does not detect those cases.
> This because unlike all other metadata object,
> {{DefaultRepresentativeFraction}} does not extend {{AbstractMetadata}}. It
> extends {{Number}} instead. The fix to to have
> {{DefaultRepresentativeFraction}} to implement the {{Emptiable}} interface.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)