CARIS HPD : Portrayal : Portrayal Files : Pattern Definition File : Annotations
 

Annotations

Fill patterns can be added to area features as separate annotation features using the annotation and pattern definition files. Once an annotation is added, the feature is displayed with the fill pattern.

For example, a LNDRGN (land region) feature with CATLND attribute (category of land) set to 2 (marsh) will be displayed with this fill pattern when the Create > Annotation command is used.

The settings for the marsh fill pattern are recorded in annotations.xml.

<Object Acronym=”LNDRGN”>

  <Filter>

    <And>

      <PrimitiveIsEqualTo Primitive=”Area” />

      <AttributeValueIsEqualTo Acronym=”CATLND” Value=”2” />

    </And>

  </Filter>

  <CreateAnnotation AnnotationType=”AREA_FILL” Acronym=”$CSYMB”Description=”Marsh” PatternDefinition=”Marsh” />

</Object>

The Annotations file uses a filter to determine if the selected feature is a LNDRGN area feature with CATLND = 2. If this is the case, then the Marsh pattern is used.

The pattern definition file contains the following instruction for marsh patterns.

<PatternDefinition Name="Marsh" Description="IC33 Marsh">

  <SymbolDefinition Size="2" Style="STAGGERED" SymbolId="NFMSS1MS" Spacing="3" Rotation="0" Colour="Black" />

</PatternDefinition>

Marsh symbols are represented by the symbol ID code NFMSS1MS. The code is recorded in the master file (ih_master.txt). Marsh symbols are inserted at staggered intervals.