Property type derivation GML application schemas

Copyright © 2007 Open Geospatial Consortium, Inc. All Rights Reserved. 229 andor replacement by a member of a substitution group. Such complex types designed for derivation by restriction are appropriate ―library types‖ for elements in substitution groups that cross namespaces. If the value of the property is expected to be available elsewhere, the type of the property element shall support referencing the GML object that is the value of the property see 21.2.6. If the value of the property is expected to be represented inline, the type of the property element shall support this, either by having XML Schema simple content of the appropriate simple type or by containing the GML object that is the value of the property inline see 21.2.6. If the value of the property is expected to be available either elsewhere, or represented inline, then the type of the property element shall support both methods. In this case the type for the property element shall have the gml:AssociationAttributeGroup, in which all members are optional, and the child element shall have minOccurs=0 so that in an instance document the property element may be empty if it carries an xlink see 7.2.3. If it is desired to prohibit the possibility of both xlink attributes and content, or neither, then this constraint should be recorded as a normative directive in an annotation element on the element declaration in the GML application schema. The directive may be expressed as prose, or it may be expressed using a formal notation such as Schematron.

21.3 Schemas defining Features and Feature Collections

21.3.1 Introduction

Features and feature collections are the primary view of geospatial information supported by GML, and are particularly useful in modelling real world geography or in defining message types for geographic web services. A feature models a real world object or concept, see Clause 9. Feature application schemas define geographic features and feature collections for a specific application domain or community. These GML application schemas shall obey the additional rules described in the following subclauses.

21.3.2 Import GML schema components

The application schema shall import the GML schema as described in 21.2.3. Any GML profile referenced from the application schema shall include at least the gml:AbstractFeature element and all schema components used by this element.

21.3.3 Elements representing features

All geographic features and feature collections in the application schema shall be declared as global elements in the schema, i.e. they shall be immediate child elements of the XML Schema schema element. The name of an element that instantiates a GML feature shall be its feature type, in the sense described in ISO 19109. An element representing a feature shall be either directly or indirectly in the substitution group of gml:AbstractFeature. An element representing a feature collection type shall be either directly or indirectly in the substitution group of gml:AbstractFeature and have in its content model a property element whose content model is derived by extension from gml:AbstractFeatureMemberType. In a GML application schema, an object that is an abstraction of a real world phenomenon shall be modelled as a feature. All other objects shall be modelled as a GML object that is not a feature, i.e. the element representing the