Maptitude GISDK Help

GetMappableFieldIndices()

Summary

Determines the positions of mappable fields in the arrays returned by GetMappableFields().

 

Syntax

indices_array = GetMappableFieldIndices(string layer_name, string field_type, array mappable_field_names)

 

Argument

Contents

layer_name

The input layer; or null for the current layer.

field_type

The string "All" to consider all fields in the view; the string "String" to consider only string-typed fields, or the string "Numeric" to consider only integer- and real-typed fields

mappable_field_names

An array of mappable field names or full field specs, such as those returned by GetMappableFields()

 

Returns

An array, of the same length as the input mappable_field_names array, containing indices (integers starting from 1) and/or nulls.

 

For each field in the input mappable_field_names array, the corresponding element in the returned array gives the position that the field would occupy in the two arrays that are returned by GetMappableFields(), when called with the same layer_name and field_type arguments. (See GetMappableFields() for details.) A null entry indicates that the named field does not exist, or that the named field does not have the specified type (so that it would not appear in the arrays returned by GetMappableFields() when called with the same field_type argument).

 

Notes

 

Error Codes

Error Type

Meaning

Error

The mappable_field_names array contain some non-string values; or

the input layer is not geographic, e.g., it is an image layer; or

some of the mappable field names are ambiguous.

 

See Also

Function

Summary

GetMappableFields()

Creates a list of the fields that are mappable to a layer

GetFields()

Gets a list of the fields in a view

 

 

©2025 Caliper Corporation www.caliper.com