In the meeting on 21 October 2021 we discussed the GML encoding of code lists.
-
The code lists should be kept simple, i.e. they should only contain codes with associated code descriptions.
-
In addition, metadata information should be added to the code lists, in particular metadata attributes for the language of the code list, the CityGML data type to which the code list refers and the CityGML version.
-> This information is enough to allow for providing code lists for the same data type in different languages. These language specific code lists contain the same codes, but the descriptions are provided in different languages.
-> In this way, by means of the metadata information also the code lists in other languages can be identified, even if the CityGML file refers to a code list in a specific language only.
-
The code lists are to be represented using GML 3.2.1 dictionaries.
-> Metadata information can be added to the dictionaries by means of a <gml:metaDataProperty> element.
-> The <gml:identifier> element can be used for the code.
-> the <gml:name> element can be used for the description, also in different languages as the element has multiplicity "unbounded".
-
We also discussed about providing a CSV encoding in addition.
The CSV files should contain three columns.
The first column indicates whether the row contains a code or metadata.
The second column contains the code or name of the metadata attribute.
The third column contains the code description or the metadata value.
-> When a code value in a CityGML instance links to an external code list, the encoding of the external code list can be determined based on the suffix .gml or .csv.
-> The code lists could then simply be managed using Excel.
Homework tasks:
- Claus will check whether CityGML 2 code lists will validate against GML 3.2.1
- Thomas and Tatjana will provide an example for a code list encoded as csv file
In the meeting on 21 October 2021 we discussed the GML encoding of code lists.
The code lists should be kept simple, i.e. they should only contain codes with associated code descriptions.
In addition, metadata information should be added to the code lists, in particular metadata attributes for the language of the code list, the CityGML data type to which the code list refers and the CityGML version.
-> This information is enough to allow for providing code lists for the same data type in different languages. These language specific code lists contain the same codes, but the descriptions are provided in different languages.
-> In this way, by means of the metadata information also the code lists in other languages can be identified, even if the CityGML file refers to a code list in a specific language only.
The code lists are to be represented using GML 3.2.1 dictionaries.
-> Metadata information can be added to the dictionaries by means of a <gml:metaDataProperty> element.
-> The <gml:identifier> element can be used for the code.
-> the <gml:name> element can be used for the description, also in different languages as the element has multiplicity "unbounded".
We also discussed about providing a CSV encoding in addition.
The CSV files should contain three columns.
The first column indicates whether the row contains a code or metadata.
The second column contains the code or name of the metadata attribute.
The third column contains the code description or the metadata value.
-> When a code value in a CityGML instance links to an external code list, the encoding of the external code list can be determined based on the suffix .gml or .csv.
-> The code lists could then simply be managed using Excel.
Homework tasks: