LOCAL

The LOCAL command declares EASI variables of the requested or default type in a manner similar to GLOBAL; however with LOCAL, the variables may only be accessed within the current function or procedure.

 LOCAL [type] name[(array_size)] [,[type] name[(array_size)],...]

 type          - type of local EASI variables to declare
 name          - names of EASI variables to declare
 array_size    - number of entries in the array

Default type of a variable is double. Possible types include:

 byte          - a single unsigned byte
 char          - a single character (1 byte)
 double        - an 8 byte double precision floating point value
 float         - a 4 byte floating point value
 integer(int)  - a signed 4 byte integer
 mstring       - a multi-line string array (no arrays)
 pointer(ptr)  - a generic memory pointer
 string        - an arbitrarily long string variable (no arrays)
 mvar          - modeling intermediate array
 Vertex        - a structure with an x, y and z field.
 GeoInfo       - a structure to hold projection information

Example:

The following example declares a locally available array of integers with 256 elements called "img_lut".

  local integer img_lut[256]

© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.