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

Many-to-One Mapping

Two or more features can be mapped to a single feature. For example, where separate features in one format (parent/child features) are represented as a single feature in another format. All features must share the same spatial position.

Objects are combined using the UpdateObject mapping function.

In this example, two objects (BOYSPP and TOPMAR) are combined to create a single BC020 feature.

<Object Acronym="BOYSPP">

  <Filter>

    <And>

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

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

    </And>

  </Filter>

  <UpdateObject Acronym="BC020" Create="True">

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

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

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

  </UpdateObject>

</Object>

 

<Object Acronym="TOPMAR">

  <Filter>

     <AttributeValueIsEqualTo Acronym="TOPSHP" Value="13" />

  </Filter>

  <UpdateObject Acronym="BC020" Create="True">

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

  </UpdateObject>

</Object>