sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris A. Mattmann (JIRA)" <>
Subject [jira] [Updated] (SIS-82) Metadata implementations could use a single field for union
Date Sat, 08 Jun 2013 04:11:25 GMT


Chris A. Mattmann updated SIS-82:

    Fix Version/s:     (was: 0.3)
> Metadata implementations could use a single field for union
> -----------------------------------------------------------
>                 Key: SIS-82
>                 URL:
>             Project: Spatial Information Systems
>          Issue Type: Improvement
>          Components: Metadata
>            Reporter: Martin Desruisseaux
>            Assignee: Martin Desruisseaux
>             Fix For: 0.4
> The ISO 19115 specification defines some properties as conditional. Most of the time,
they are a set of mutually exclusive properties. For example the {{MD_Resolution}} class defines
two properties: {{equivalentScale}} and {{distance}}, both of them flagged as conditional.
The specification said: "_Only one of equivalent scale and ground sample distance may be provided_".
> Currently those two properties are defined in separated fields and could be defined together.
We could replace the two private fields by a single private {{Object}} field, and use {{instanceof}}
check in getter methods. The advantage would be:
> * Automatically gain enforcement of the ISO specification.
> * Save a little bit of memory space for metadata instances.
> One consequence is that if an XML document contains two properties, the last property
would silently overwrite the previous one at unmarshalling time. To prevent such thing to
happen silently, we would need the {{APPENDABLE}} mode proposed in SIS-81.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message