Uploaded image for project: 'Spatial Information Systems'
  1. Spatial Information Systems
  2. SIS-419

Implement (un)marshalling of gco:Record

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.8
    • 1.0, 1.3
    • Metadata
    • None

    Description

      We do not support yet the XML (un)marshalling of gco:Record and gco:RecordType elements. One difficulty is that a Record is a kind of key-value pairs (like a java.util.Map) and we did not found a lot of examples about how to represent that. Looking at this file from data.gov, we found the following that looks like key-description pairs separated by colon:

      <gco:Record>Alphanumeric values: Product is alphanumeric.</gco:Record>
      <gco:Record>Alphanumeric Text: Message contains alphanumeric text.</gco:Record>
      <gco:Record>Part A: Reflectivity presented as a tabular listing of alphanumerics</gco:Record>
      

      But we found also code lists:

      <gco:Record>
        <gmd:CodeListValue codelist="someURL#DataQualityAssessment" codeListValue="intermediate">intermediate</gmd:CodeListValue>
      </gco:Record>
      

      The record types examples seems similar (reformatted on many lines below for readability):

      <gco:RecordType>
        General Meteorological Products: General products include the baseline reflectivity and velocity,
        and also algorithmic graphic products spectrum width, vertical integrated liquid, and VAD wind profile.
      </gco:RecordType>
      

      Unmarshalling implementation in Apache SIS 1.0-SNAPSHOT is:

      • For gco:RecordType, take the part on the left side of the colon as the member name. Part of the right side is discarded, since we currently have no place where to store the description of a member.
      • For gco:Record, store the text as-is (no parsing).

      We may need to revisit this naive implementation if we find more examples of how records are represented in XML files.

      Attachments

        Issue Links

          Activity

            People

              desruisseaux Martin Desruisseaux
              desruisseaux Martin Desruisseaux
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: