GeoAPI
  1. GeoAPI
  2. GEO-199

ISO 19115 defines MD_PixelOrientationCode and MD_TopicCategory as enums, not CodeLists

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.3-M9, 3.0.0
    • Fix Version/s: 3.1.0
    • Component/s: metadata
    • Labels:
      None
    • Number of attachments :
      0

      Description

      The following classes:

      are declared as enumerations in ISO 19115. GeoAPI wrongly implemented them as code lists. We should consider turning them into enumerations for GeoAPI 3.1.

        Activity

        Hide
        Martin Desruisseaux added a comment -

        An other code list which was supposed to be an enumeration is org.opengis.metadata.Obligation. If we change this code list into an enumeration, this allow us to remove the org.opengis.annotation.Obligation enumeration, which duplicate the values of the metadata one.

        Show
        Martin Desruisseaux added a comment - An other code list which was supposed to be an enumeration is org.opengis.metadata.Obligation . If we change this code list into an enumeration, this allow us to remove the org.opengis.annotation.Obligation enumeration, which duplicate the values of the metadata one.
        Hide
        Martin Desruisseaux added a comment -

        One problem of defining the above-cited types as Enum instead of CodeList is that it forces developers to duplicate some code for those two kind of enumerated values. As an attempt to avoid this inconvenient, an Enumerated interface has been added as of revision 2168.

        Show
        Martin Desruisseaux added a comment - One problem of defining the above-cited types as Enum instead of CodeList is that it forces developers to duplicate some code for those two kind of enumerated values. As an attempt to avoid this inconvenient, an Enumerated interface has been added as of revision 2168.

          People

          • Assignee:
            Unassigned
            Reporter:
            Martin Desruisseaux
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: