CARIS Bathy DataBASE Server : Support Files : Mapping : Mapping Functions : One-to-Many Mapping
 

One-to-Many Mapping

A single object can be mapped to multiple objects. This is necessary when a single feature in one format is represented as multiple features in another format. 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>