Martin Desruisseaux created SIS-194:
---------------------------------------
Summary: 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.5, 0.4, 0.3
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)