Include "MapBasic.def"
Declare Sub Main
Sub Main()
Dim ColumnCount as integer
Dim ColumnName as string
Dim TableName as string
Dim SelCol as Alias
Dim WinID as integer
Dim TableCount as integer
Dim TableIndex as integer
WinID = FrontWindow()
TableCount = NumTables()
For TableIndex = 1 To TableCount
TableName = TableInfo(TableIndex, TAB_INFO_NAME)
Print TableName
For ColumnCount = 1 To TableInfo(TableIndex, TAB_INFO_NCOLS)
ColumnName = ColumnInfo(TableIndex, "COL" & ColumnCount, COL_INFO_NAME)
Print ColumnName
If ColumnName = "ELEV" Then
Print "ELEV Found."
Print TableName & "." & ColumnName
SelCol = ColumnName
Shade Window WinID TableName With SelCol
ignore 0
Ranges
10000 : 2000 Symbol(108, 16753029, 10, "Wingdings", 0, 0),
2000 : 10 Symbol(108, 16757529, 10, "Wingdings", 0, 0),
10 : -30 Symbol(108, 13757529, 10, "Wingdings", 0, 0),
-30 : -5000 Symbol(108, 19457529, 10, "Wingdings", 0, 0),
-5000 : -10000 Symbol(108, 19757529, 10, "Wingdings", 0, 0),
-10000 : -20000 Symbol(108, 19857529, 10, "Wingdings", 0, 0)
Exit For
End If
Next
Next
End Sub
So I got this mapbasic code that create a Thematic Map for Ranges like this:
The problem is that I need a Grid Thematic, specifically for elevation, like this:
Does anyone know how I could turn this code to a grid based one or has an alternative code that works?