Maptitude GISDK Help

CreateNodeField()

Summary

Creates a formula field on a line layer using data from the associated node layer.

 

Syntax

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

 

Returns

The actual name of the field in the line layer.

 

Notes

Example

// 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 Codes

Error Type

Meaning

NotFound

One of the layer names or field names is invalid

 

See Also

Function

Summary

CreateExpression()

Creates an expression field on a view

DestroyExpression()

Destroys an expression field

GetExpressions()

Returns an array of all expression fields defined in a view

 

 

©2025 Caliper Corporation www.caliper.com