A set of functions are used to map from one object to another. These functions may simply create part of the new object (that is, set the acronym), or use information from the object being mapped to create the mapping.
The following table lists the available mapping functions.
Function | Attributes |
|---|---|
MapObjectAcronym | Acronym="Acronym" |
| |
UpdateObject | Acronym="Acronym" Create="True" MatchBy="attribute,attribute,attribute" |
| |
ConvertGeometry | Primitve="Feature Type" Value="text" Acronym="attribute" |
Geometry mapping is supported only by the Import Selected Objects command. See Geometry Mapping | |
SetAttributeValue | Acronym="Acronym" Value="Value" Append="True/False" Separator="Separator" |
| |
| Acronym="Acronym" AdjustDayBy="Value" |
| |
CopyAttributeValue | FromAcronym="acronym" ToAcronym="acronym" RelatedFeature="RelationCode/RoleCode/FeatureCode" Round="Round/Truncate" Precision="number of decimal places" Append="True/False" Separator="Separator" Negate=”True/False” Add="amount to add to value" Minus="amount to subtract from value" Multiply="amount by which to multiply value" Divide="amount by which to divide value" |
• • • Parent/Child: • collection: • annotation: • For non-S-100 mappings, the following relations and roles will be used: • parentChild: • Relation name = parent child • Parent role code = isAParentOf • Parent role name = is a parent of • Child role code = isAChildOf • Child role name = is a child of • collection: • Relation name = collection • Parent role code = consistsOf • Parent role name = consists of • Child role code = isAComponentOf • Child role name = is a component of • annotation: • Relation name = annotation association • Parent role code = isAnnotatedBy • Parent role name = is annotated by • Child role code = annotates • Child role name = annotates For example: <CopyAttributeValue RelatedFeature="BridgeAggregation/consistsOf/Bridge" FromAcronym="featureName/name" ToAcronym="OBJNAM" Append="True"/> If an S-100
• • • • The operator can use the value of an attribute instead of a numeric value. For example: <CopyAttributeValue Attribute="HEIGHT" Minus="DRVAL1"/> | |
CopyConvertibleAttributes | — |
All matching attributes in the first feature are copied to the second feature. | |
ApplyAttributeMapping | Name="AttributeMappingName" |
| |
SetSpatialAttributeValue | Acronym="acronym Value="value" Append="True/False" Separator="Separator" |
| |
CopyZValue | One of: Precision="value" ApplySoundingRounding="rule" |
| |
AssignZValueToAttribute | Acronym="acronym" Negate="True/False" PositiveValuesOnly="True/false" ApplySoundingRounding=”rule” Add="amount to add to value" Minus="amount to subtract from value" Multiply="amount by which to multiply value" Divide="amount by which to divide value" |
• • • • The operator can use the value of an attribute instead of a numeric value. For example: <AssignZValueToAttribute Attribute="HEIGHT" Minus="DRVAL1"/> | |
MapAttribute | Name="Name of attribute mapping" RepeatForEach="Attribute with more than one encoded value" |
The | |
SetAttributeValueUnknown | Acronym="Acronym" |
This is available for all feature types.
| |
SetAttributeValueUndefined | Acronym="Acronym" |
If the attribute exists in the object being mapped, it will be set to undefined in the new object. | |
SetScaminAttribute | Acronym =acronym" ScaleFactor=Value CSCLMultiplier="Value that overrides the divisor" |
For more information on the use of CSCLMultiplier, see Soundings and Non-Sounding Features. | |
AssignScaminByStep | Acronym ="Acronym" Steps = "Value" |
| |
AssignScaminFromParent | — |
The feature is assigned the SCAMIN value of the parent. This is only applicable to child features. | |
AssignScaminFromParent | Acronym="Acronym" Relationship="Relationship code" |
The relationship code for S-57 objects is parentChild. The feature is assigned the scale minimum value of the parent. This is only applicable to child features. | |
| Acronym="Acronym of the collection being created" ToAcronym="Attribute on the new collection feature that receives the value” Value="Attribute value" |
All the attributes are mandatory | |
| Acronym="Collection Feature" FromAcronym="Attribute on the original feature to retrieve value from” ToAcronym="Attribute on the new collection feature that receives the value" |
All the attributes are mandatory. Both this mapping rule and Example:
A new Bridge collection object can contain any of the following features: • • • that are not disjointed with the initial Collections will be combined with other identical collections unless a filter is used, then they must also share a component. | |
| — |
Masked edge segments in the source will be marked as masked in the mapped data. | |
| Acronym="Attribute Acronym to assign angle to" |
The angle of the source symbol will be assigned to the specified attribute. | |
| Acronym="Attribute Acronym to assign FOID to"
|
The Feature Object ID (FOID) is assigned to an alphanumeric attribute. | |
| -- |
Skip this feature during mapping. See | |
| Value="Message to Display" |
Display a plain text message to the user in the Mapping Output. | |
| FromAcronym="Attribute Acronym on the source map whose value will be substituted" ToAcronym="Attribute acronym on the destination map that will hold the updated value" RegexPattern="The perl-style regular expression pattern" ReplaceWith="The perl-style replace format" |
Attribute text substitutions can be made using Regular Expressions (Regex). See Regular Expressions for more information. | |
| Value="Relationship code to set" |
Set the relationship code when mapping collections. Multiple relationship codes can be set. When the collections are created, any invalid relationships are not created. Example:
| |
| Flag="Spatial Flag to be set" |
Applies a flag to the edges of the matching feature based on a sub filter. The filter rule must return a list of edges. The filter will be applied to the destination feature(s), after all the other mapping rules have applied.
• • • Example:
This example will map all CANALS features to a CANALS feature. Every edge of a CANALS feature that shares a spatial with a LNDARE will be flagged as "Masked". All other edges will be untouched. In Addition, every edge that is shared with an M_COVR will be marked as Truncated ("Closed"). Rules are applied in the order encountered, so an edge used by both a LNDARE and an M_COVR will be marked as Truncated ("Closed"). There is no way to set both Closed AND Masked flags at the same time. | |
| Script="Script to execute" |
Specifies a pre-defined attribute scripts to assign values to attributes. Currently two scripts are available for use with ENC to DNC mapping: • assign_natsur - Uses the NATSUR attribute to populate DNC ’nature of surface’ attributes. • assign_natqua - Uses the NATQUA attribute to populate DNC ’quality of surface’ attributes. | |
| |
| |