Maptitude GISDK Help |
Creates a formula field on a line layer using data from the associated node layer.
new_field = CreateNodeField(string line_layer, string field_name, string node_field_spec, string which_node, array options)
Argument |
Contents |
line_layer |
The line layer to which the field is added |
field_name |
The desired name for the new formula field |
node_field_spec |
The full field spec for the node layer field |
which_node |
From or To, indicating which of the two nodes the data should be taken from |
options |
No options are currently supported |
The actual name of the field in the line layer.
Use CreateNodeField() to display start node or end node information for line features.
Once created, a node expression field is treated like any other expression field.
// Add start node and end node fields to a line layer
start_fld =CreateNodeField("Highways", "Start Node", "Endpoints.ID", "From", )
end_fld = CreateNodeField("Highways", "End Node", "Endpoints.ID", "To", )
Error Type |
Meaning |
NotFound |
One of the layer names or field names is invalid |
Function |
Summary |
Creates an expression field on a view |
|
Destroys an expression field |
|
Returns an array of all expression fields defined in a view |
©2025 Caliper Corporation | www.caliper.com |