Documentation Conversion rules .1 UML package with stereotype applicationSchema

Copyright © 2013 Open Geospatial Consortium. 45 In the discussions about the SWE Common 2.0 support, additional requirements have surfaced and these are documented in this clause, too.

7.2 SWE Common 2.0 Encoding Rule

7.2.1 The Encoding Rule

Since the SWE Common Data Model 2.0 encoding rule has been developed using the GML 3.2 encoding rule as a starting point, it shares a large number of conversion rules with the GML 3.2 encoding rule. The standard itself lists the following differences from the GML 3.2 encoding rule in Annex C: ฀ Relaxed rule on the mandatory ‘id’ attribute that is kept optional in the SWE Common Data Model schemas. ฀ Introduced the additional tagged value ‘soft-typed’, so that soft-typed-properties can be encoded in XML with an additional ‘name’ attribute. ฀ Added support for encoding certain simple-type properties as XML attributes by introducing the additional tagged value ‘asXMLAttribute’. ฀ Used different base type for Type stereotype Elements are derived from swe:AbstractSWE instead of gml:AbstractGML. A closer analysis revealed that the differences are greater than implied by the standard itself. As a result, the SWE Common Data Model 2.0 encoding rule implemented in ShapeChange encoding rule identifier: ogcSweCommon2 shares all conversion rules with the GML 3.2 encoding rule, with the following differences. The following conversion rules replace the respective GML 3.2 conversion rules rule- xsd-all-naming-gml and rule-xsd-cls-standard-swe-property-types: rule-xsd-all-naming-swe Use the naming strategy for schema components as specified by SWE Common Data Model 2.0. The naming of XML Schema elements and types is the same as in the GML 3.2 encoding rule except that a new abstract base XML Schema type AbstractSWEType and XML Schema element AbstractSWE is introduced instead of the GML base types and elements. rule-xsd-cls-standard-swe- property-types The conversion rules for reusing existing or creating new property types are similar to those in GML 3.2, with the following differences: ฀ SWE Common specifies its own swe:AssociationAttributeGroup attribute XML