Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The UML class name is used for the element names in the XML Schema.

Mapping Objects

AIXM objects are encoded as GML objects. For the most part, the XML schema entities are created in the same way as for Features, following the object-property model. However it is important to remember that AIXM objects do not exist outside of a feature and are therefore part of the feature timeslice. TimeSlice types and elements are not created for objects. 
For each AIXM Object the following XML schema entities are created: 

  • ObjectPropertyGroup
  • Object
  • ObjectType
  • ObjectPropertyType
  • AbstractObjectExtension

...

The example will use the City object illustrated below. The object represents the town that is served by an AirportHeliport. 
Image Removed

...


...

The CityType definition uses the CityPropertyGroup and the extension. It extends AbstractAIXMObjectType 
Image Removed 
<complexType name="CityType">
<complexContent>
<extension base="aixm:AbstractAIXMObjectType">
<sequence>
<group ref="aixm:CityPropertyGroup"/>
<element name="extension" minOccurs="0" maxOccurs="unbounded">
<complexType>
<sequence>
<element ref="aixm:AbstractCityExtension"/>
</sequence>
<attributeGroup ref="gml:OwnershipAttributeGroup"/>
</complexType>
</element>
</sequence>
</extension>
</complexContent>
</complexType>

...

The City object is then defined as an XSD element of type CityType.
Image Removed 
<element name="City" type="aixm:CityType">
<annotation>
<appinfo><gml:description>A city or location that may be served by an airport/heliport.</gml:description></appinfo>
</annotation>
</element>

...

An XSD complex type representing a GML property type is created. A Feature uses this element to include the City object rather than reference it (using xlink:href) because object does not exist without the parent. 
Image Removed 
<complexType name="CityPropertyType">
<complexContent>
<extension base="aixm:AbstractAIXMObjectType">
<sequence>
<element ref="aixm:City"/>
</sequence>
<attributeGroup ref="gml:OwnershipAttributeGroup"/>
</extension>
</complexContent>
</complexType>

Anchor
_Toc173661914
_Toc173661914
Anchor
_Toc173661915
_Toc173661915
Anchor
_Toc173661916
_Toc173661916
Anchor
_Toc173661917
_Toc173661917
Anchor
_Toc173661918
_Toc173661918
Anchor
_Toc173661919
_Toc173661919
Anchor
_Toc173661920
_Toc173661920

...