Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 3.13, 3.14, 3.15, 3.16
  • Fix Version/s: 3.17
  • Component/s: Metadata

Description

The locale attribute in DefaultMetadata has no JAXB annotation. We need to be able to produce an output like below:

<gmd:locale>
  <gmd:PT_Locale id="locale-eng">
    <gmd:languageCode>
      <gmd:LanguageCode codeList="./resources/Codelists.xml#LanguageCode" codeListValue="eng">eng</gmd:LanguageCode>
    </gmd:languageCode>
    <gmd:country>
      <gmd:Country codeList="./resources/Codelists.xml#Country" codeListValue="GB">GB</gmd:Country>
    </gmd:country>
    <gmd:characterEncoding>
      <gmd:MD_CharacterSetCode codeList="./resources/Codelists.xml#MD_CharacterSetCode"
              codeListValue="8859part15">8859part15</gmd:MD_CharacterSetCode>
    </gmd:characterEncoding>
  </gmd:PT_Locale>
</gmd:locale>

This attribute is of collection of elements of kind CharacterString in ISO 19115, LanguageCode (a code list) in ISO 19139 and java.util.Locale in GeoAPI. Note that java.util.Locale has all the required information except the character set, which is represented by a separated class in the Java library.

As a side effect of this task, the Geotk LocalAdapter needs to be updated in order to change its output from:

<language>
  <gco:characterString>eng</gco:characterString>
</language>

to

<language>
  <gmd:LanguageCode codeList="./resources/codeList.xml#LanguageCode" codeListValue="eng"/>
</language>

Issue Links

Activity

There are no comments yet on this issue.

People

  • Assignee:
    Martin Desruisseaux
    Reporter:
    Martin Desruisseaux
Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved:

Time Tracking

Estimated:
2h
Original Estimate - 2 hours
Remaining:
2h
Remaining Estimate - 2 hours
Logged:
Not Specified
Time Spent - Not Specified