CARIS HPD : Support Files : Mapping : Geometry Mapping : Geometry Mapping Rule File
 

Geometry Mapping Rule File

The Features_from_Edges_Mapping_Example.xml file creates a new area or line using the edge geometry of all selected features. The original features are untouched.

The file can be used to create line features from area features or area features from line features.

This is an example of a small mapping file:

<BatchProcessingRuleFile Version="1.0" Name="Edges to Features Geometry Conversion Mapping Example">

  <Rule Name="Generate LNDARE Areas">

    <EdgeFilter join="Or">

      <Filter>

        <ObjectAcronymIsEqualTo Acronym="COALNE"/>

      </Filter>

      <Filter>

        <ObjectAcronymIsEqualTo Acronym="SLCONS"/>

      </Filter>

    </EdgeFilter>

    <CreateAreaFeatures Acronym="LNDARE">

      <Attribute>

        <Acronym>INFORM</Acronym>

         <Value>LNDARE Generated from selected edges</Value>

      </Attribute>

    </CreateAreaFeatures>

  </Rule>

</BatchProcessingRuleFile>

In this example, land area (LNDARE) features are generated from edges that are part of selected coastline (COALNE) or shoreline construction (SLCON) features. The information (INFORM) attribute contains the text LNDARE generated from selected edges.

To create area features, use <CreateAreaFeatures/>. To create line features use <CreateLineFeatures/>

The <EdgeFilter/> can be set to one of the following:

join="Or" - edges of any feature listed in the <Filter/> tags can be used.

join="And" - edges of all features listed in the <Filter/> tags can be used.