Support Files : Mapping : Mapping File Structure : Object Mapping
 

Object Mapping

The object mapping parameters are contained between the <ObjectMappings> tags. There must be at least one object mapping in this section.

The basic structure of the object mapping section is shown below.

<Object Acronym="Acronym">

   <Filter>

      <PrimitiveIsEqualTo Primitive="Primitive"/>

   </Filter>

   <MapObject>

      <MapObjectAcronym Acronym="Acronym" />

      <SetAttributeValue Acronym="Acronym" Value="value"/>

      <ApplyAttributeMapping Name="AttributeMappingName"/>

   </MapObject>

</Object>

The tags in the <ObjectMappings> section are.

Tag

Comments

Status

<Object>

The <Object> tag is the feature being mapped.

Attributes:

Acronym: The identifier of the object.

Mandatory

<Filter>

The <Filter> tag contains filter functions that determine if the object being mapped meets the criteria for mapping. The filter can be complex or simple. The object can only contain one filter.

Optional

<MapObject>

The <MapObject> tag contains a list of functions for mapping the object. One feature will be mapped for each <MapObject> entry.

Mandatory

Object Mapping Example

In the following example, the S-57 AIRARE objects are mapped to the VPF GB005 objects.

<Object Acronym="AIRARE">

   <Filter>

      <PrimitiveIsEqualTo Primitive="Point"/>

   </Filter>

   <MapObject>

      <MapObjectAcronym Acronym="GB005" />

      <SetAttributeValue Acronym="EXS" Value="28" />

      <ApplyAttributeMapping Name="OBJNAMtoNAM" />

      <ApplyAttributeMapping Name="CATAIRtoAPTForPoints" />

   </MapObject>

</Object>

 

<Object Acronym="AIRARE">

   <Filter>

      <PrimitiveIsEqualTo Primitive="Area" />

   </Filter>

   <MapObject>

      <MapObjectAcronym Acronym="GB005" />

      <SetAttributeValue Acronym="EXS" Value="28" />

      <ApplyAttributeMapping Name="OBJNAMtoNAM" />

      <ApplyAttributeMapping Name="CATAIRtoAPTForAreas" />

   </MapObject>

</Object>

From the above example:

A VPF GB005 area object is created from an AIRARE area object, and a GB005 point object is created from the AIRARE point object.

Both GB005 objects are created with the attribute EXS=28.

OBJNAMtoNAM attribute mapping is applied to both GB005 objects (see Attribute Mapping Example).

The CATAIRtoAPTForPOINTS attribute mapping is applied to the GB005 point objects, and the CATAIRtoAPTForAREAS attribute mapping is applied to GB005 area objects.