Details
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
- is depended upon by
-
GEOTK-143
Multiples differences in generated XML when unmarshalling-marshalling ISO19139.
-