Purpose
Returns information about a grid table.
Syntax
GridTableInfo( table_id, attribute )
table_id is a string representing a table name, a positive integer table number, or 0 (zero). The table must be a grid table.
attribute is an integer code indicating which aspect of the grid table to return.
Return Value
String, SmallInt, Integer or Logical, depending on the attribute parameter specified.
The attribute parameter can be any value from the table below. Codes in the left column (for example, GRID_TAB_INFO_) are defined in MAPBASIC.DEF.
attribute code | ID | GridTableInfo() returns: |
---|---|---|
GRID_TAB_INFO_MIN_VALUE | 1 | Float result, representing the minimum grid cell value in the file |
GRID_TAB_INFO_MAX_VALUE | 2 | Float result, representing the maximum grid cell value in the file |
GRID_TAB_INFO_HAS_HILLSHADE | 3 | Logical result, TRUE if the grid file has hillshade/relief shade information. This flag does not depend on whether the file is displayed using the hillshading. |
See Also:
Create Grid statement, GetGridCellValue() function, IsGridCellNull() function, RasterTableInfo() function