The object mapping elements are contained between the <MapObject> tags. Each DGN level in this section is mapped to a feature class. There must be at least one object mapping in this section.
Entries are ordered from the most specific to the least specific. The structure and syntax of the object mapping section is similar to other mapping files. To find out more about how object mapping works, see Object Mapping.
This is an example of object mapping.
<Object DGNLevel="2" Description="Underwater rock (cell 4004)"> <Filter> <And> <PrimitiveIsEqualTo Primitive="Symbol"/> <DGNCellNameIsEqualTo Value="4004"/> </And> </Filter> <MapObject> <MapObjectAcronym Acronym="UWTROC"/> <SetAttributeValue Acronym="WATLEV" Value="3"/> <SetAttributeValue Acronym="NATSUR" Value="9"/> <SetAttributeValue Acronym="QUASOU" Value="2"/> </MapObject> </Object> |
In the above example, the <Object> tag contains the elements required to map a DGN to feature to an HPD feature. The tag must contain a set of mapping rules within the <MapObject> tags, but the filtering rules are optional. The Description attribute contains a brief description of what feature is being mapped. This attribute is also optional.
The following table describes the filters for mapping DGN files. Any of these filters can be applied within the <Filter> tags.
Filter | Attribute | Attribute Value |
|---|---|---|
| Primitive | Point |
| Value | Integer value between 0-31. |
| Value | Integer value between 0-7. The values represent the following lines styles: 0 - solid |
| Value | Integer value between 0-255. |
| Value | String value that cannot be empty. |
| Value | Any valid double value |
| Value | Any valid double value |
| Value | Any valid double value |
| Value | Any valid double value |
| Value | Any valid double value |
The following table describes the object mapping functions. These must be placed between the <MapObject> tags.
Mapping Function | Attribute | Attribute Value |
|---|---|---|
| Acronym | A string value for the HPD object acronym. The string value cannot be empty. |
| Acronym | A string value containing the attribute to be assigned. The string value cannot be empty. |
Value | A string value containing the value to be assigned to the attribute. The string cannot be empty. | |
Append | True if values will be appended to the attribute (if attribute already has a value). False if value will be assigned to the attribute. False will be assumed if not explicitly set to True. | |
Separator | String to act as a delimit values. This attribute is only valid if Append is set to True. | |
| Acronym | A string value containing the attribute to be set to undefined. |
| Acronym | A string value containing the attribute to be set to unknown. |
| Acronym | A string value containing the attribute acronym to be set to unknown. The string value cannot be empty. |
Negate | True if the Z value is to be negated. False if the value is not to be negated. Default is false. | |
PositiveValuesOnly | True sets the Z value to be assigned only if the value is positive. False sets the Z value to be assigned whether or not the value is positive or negative. | |
| Acronym | A string value containing the attribute acronym to which the dataset name is assigned. |
Append | True if values will be appended to the attribute (if attribute already has a value). False if value will be assigned to the attribute. False will be assumed if not explicitly set to True. | |
Separator | String to act as a delimit values. This attribute is only valid if Append is set to True. | |
| Acronym | A string value containing the attribute acronym to which the source type will be assigned. |
Append | True if values will be appended to the attribute (if attribute already has a value). False if value will be assigned to the attribute. False will be assumed if not explicitly set to True. | |
Separator | String to act as a delimit values. This attribute is only valid if Append is set to True. | |
| N/A | Convert a line that forms a closed shape into an area feature, when mapping from a DGN, Shapefile or GML file to an S-57 or HOB file. |
| N/A | Convert a closed shape into a line, using the boundary, when mapping from a DGN, Shapefile or GML file to an S-57 or HOB file. |
| Acronym | Attribute acronym to which the DGN label will be assigned. |
| Acronym | Attribute acronym to which the DGN level will be assigned. |
| Acronym | Attribute acronym to which the DGN cell name will be assigned. |