CARIS HIPS and SIPS Help : Support Files Guide : Mapping : Mapping Functions : One-to-Many Mapping
 

One-to-Many Mapping

A single object can be mapped to multiple objects. This mapping is necessary where a single feature in one data format is treated as multiple features in another format (e.g. a parent/child relationship). All features will share the same spatial position.

The following example maps a BC020 object with CCC=12 and SST=1 to both the BOYSPP and FOGSIG objects.

<Object Acronym="BC020">

  <Filter>

    <And>

      <AttributeValueIsEqualTo Acronym="CCC" Value="12" />

      <AttributeValueIsEqualTo Acronym="SST" Value="1" />

    </And>

  </Filter>

  <MapObject>

    <SetAttributeValue Acronym="COLOUR" Value="3" />

    <CopyAttributeValue ToAcronym="OBJNAM" FromAcronym="NAM" />

    <SetAttributeValue Acronym="CATSPM" Value="27" />

    <SetAttributeValueUnknown Acronym="BOYSHP" />

    <MapObjectAcronym Acronym="BOYSPP" />

  </MapObject>

  <MapObject>

    <SetAttributeValue Acronym="CATFOG" Value="7" />

    <CopyAttributeValue ToAcronym="OBJNAM" FromAcronym="NAM" />

    <MapObjectAcronym Acronym="FOGSIG" />

  </MapObject>

</Object>