INSPIRE-MIF / helpdesk

Community discussion for generic INSPIRE related topics
6 stars 5 forks source link

Guidelines for the encoding of spatial data - CharacterString #90

Closed bfrichet3 closed 2 years ago

bfrichet3 commented 2 years ago

Dear Sir or Madam

I hope you are all right.

I have a question concerning the way of instatiating gmd:CharacterString objects in datasets' GML, for instance as I want to express the nationalCode attribute of one AdministrativeUnit object.

As I understand IR 1089/2010 I should instantiate one gmd:CharacterString tag inside a au:nationalCode. But I cannot find any GML files with such a structure and as I tested a GML from switzerland I didn't get any message about that problem. Should I understand that attributes with CharacterString ranges needn't any gco:CharacterString tag or is it something else (like a test that hasn't yet been implemented). image

Regards testAUGMLSWITZERLAND.zip

image

fabiovinci commented 2 years ago

Dear @bfrichet3,

the encoding you used is right, the attributes with "CharacterString" dataType contain only text without additional child elements.

As yuo can see in the test report, the "Schema validation" test in the "Conformance class: INSPIRE GML application schemas, General requirements" is passed.

bfrichet3 commented 2 years ago

Dear @fabiovinci

I am not totally convinced that is this way of writing is compliant with IR/ISO regulations. As you may know in the ISO 191xx norms, there is always an explicit gco:CharacterString tag, like in the ISO 19139 metadata records.

image

image

In my opinion, it is not clear if IR requires such an extra tag or not.

Regards

fabiovinci commented 2 years ago

Dear @bfrichet3,

the "CharacterString" dataType of the nationalCode attribute is derived from ISO19103, as you can see from the screenshot below:

image

Following the profile of the conceptual model defined in the ISO 19100 series of International Standards implemented by GML (Annex D of OpenGIS® Geography Markup Language (GML) Encoding Standard), the “CharacterString” is implemented by xsd:string.

image

Therefore in the XSD, this dataType is implemented as a simple type:

image

Regarding the metadata, the ISO19139 defined an additional complex type

image

which is used as dataType for some metadata elements:

image

For these reasons, there is a different encoding in the GML and in the metadata for the same dataType.

bfrichet3 commented 2 years ago

thank you for your clarification!