This section describes how to build custom portrayal files to display symbols, lines, areas, pattern fills and so on, and how to set colours.
Compose can display symbols but not create them. You must use the CARIS Symbol Editor to create symbols. Contact CARIS support for more information. |
Portrayal Libraries
Portrayal libraries are lookup tables that define the symbolization, colours, and display priorities for features in a custom product. Portrayal libraries are organized by primitive type (areas, lines, and points). Area features must be in a separate portrayal file from point and line features.
For the example MIO, there are three area features in a separate portrayal file, called, for example, asymrefs_MIO.dic.
***************************************************************** |
* MIO Additions |
***************************************************************** |
|
"crlref","","LS(SOLD,2,RESGR)","5","S","OTHER","" |
"mpaare","","LS(DASH,2,RESBL)","5","S","OTHER","" |
"mpaare","levprt1","AC(CHRED,1);LS(DASH,2,CHRED)","5","S","OTHER","" |
The first four fields of each row determine the symbolization properties of features:
Field | Description |
|---|---|
1 | The feature acronym. In the example, the acronyms are There are two |
2 | The attribute acronym and value. In the example: • The first two features do not contain acronym values; this field is empty ( • The third feature ( |
3 | Symbolization instructions for the feature. Feature one ( • • • The area is not filled. |
Feature two ( • • • | |
Feature three ( This is two sets of symbolization instructions separated by a semi-colon. First set fills the area and sets the transparency: • • The second instruction defines the line around the area: • • • | |
4 | Draw order. For all features this is five. This means that these features will be drawn over four other display levels. |
Portrayal Control File
Use the Portrayal Control option in the Options dialog box to define the location of your custom portrayal control files.
This example shows the portrayal options for the example MIO product.
<PresentationOptions Type="S-52" Name="MIO" Description="MIO"> |
<LookupTables> |
<AreaLookup File="%S57Config%\symbolization\lookup\asymrefs_mio.dic" SymbolizedBoundaries="True" /> |
<LineLookup File="%S57Config%\symbolization\lookup\lsymrefs_mio.dic" /> |
<PointLookup File="%S57Config%\symbolization\lookup\psymrefs_mio.dic" /> |
</LookupTables> |
<SymbolFiles Directory="%S57Config%\symbolization\symshow" /> |
<ColourFiles Directory="%S57Config%\symbolization\colcalib" /> |
</PresentationOptions> <!-- Marine Information Overlays --> |
In this example, the custom product:
• is given the portrayal type name MIO
• uses three portrayal files: asymrefs_mio.dic, lsymrefs_mio.dic, and psymrefs.dic
• uses the same symbolization folder as ENC or IENC products
• uses the same colour tables as ENC or IENC products
The MIO portrayal type can now be selected in the Properties window or the Options dialog box.