The following variables relate to the Grid Layers variable category.
NumberOfGridLayers |
Number of Grid Layers |
integer |
|
Grid[i].Name |
Name of Grid |
text |
|
Grid[i].Path |
Full path of grid file |
text |
|
Grid[i].Min |
Minimum Value (for numerical grids) |
decimal |
|
Grid[i].Max |
Maximum Value (for numerical grids) |
decimal |
|
Grid[i].Type |
Grid type (either STRING, GRID or INTEGER) |
text |
|
Grid[i].ID |
Grid reference identifier |
integer |
|
Grid[i].Values[Row][Column].value |
grid cell value at 'Row' and 'Column' position |
integer, decimal or text |
|
NOTE: It should be noted that [i] refers to the index of the grid layer, not the grid layer name. The index of the grid layer can be obtained from the grid layer name using the following code:
LOOP(i|1|%GridLayers.NumberOfGridLayers|
IF(%GridLayers.Grid[i].Name|=|&SelectedGridName|
AssignVariable(&GridIndex,[i])
)
)