Hello,
Thanks. That's usefull. At the moment, I'd like to try to integrate raster into Mapbasic as I have a lot of scripts using mapbasic and vertical mapper.
Below is a piece of code I'd lile to translate for Raster. That's using the contour function....
****************************
Sub vmGRCContourSub
Dim i_errCode As Integer
Dim s_classifiedTableName As String
Dim i_vmGrid As Integer
s_classifiedTableName = "C:\temp\CIR1M__ProvPlot_18db_App1.tab"
i_vmGrid = vmOpenGrid(s_classifiedTableName, 0)
If i_vmGrid = 0 Then
Goto ERR_VMOPENGRID
End If
Dim s_regionTableName As String
s_regionTableName = "C:\temp\" + "CIR1M__ProvPlot_18db_App1_Contour.tab"
i_errCode = vmGRCContour(i_vmGrid, s_regionTableName, 0)
If i_errCode <> 0 Then
Goto ERR_VMCALL
End If
i_errCode = vmCloseGrid(i_vmGrid)
open table s_regionTableName as testfile
map from testfile
set map window frontwindow() zoom entire
LAST_EXIT:
Exit Sub
ERR_VMOPENGRID:
Note "Failed to open grid."
Exit Sub
ERR_VMCALL:
Note "Call to vmGRCContour failed. Error code = " + Str$(i_errCode)
i_errCode = vmCloseGrid(i_vmGrid)
Exit Sub
End Sub
******************
The VM libraries are called using:
***********************
'Set the current directory as the executable directory in order to access Vertical Mapper functionality
g_AppDir = GetKeyValue(HKEY_LOCAL_MACHINE, "SOFTWARE\MapInfo\MapInfo\Vertical Mapper\370", "PATH")
Call SetVMDirectory(g_AppDir)
Call SetMBDirectory()
***************
Would you have anything similar so I can get started with it please?
Thanks in advance
------------------------------
Alban Spella-Barberet
NBN Co Limited
North Sydney NSW
------------------------------
Original Message:
Sent: 11-16-2020 09:33
From: sujit thakur
Subject: Raster SDK documentation and samples
Raster SDK API documentation and sample codes are present in the MapInfoPro installation directory at the following path.
C:\Program Files\MapInfo\Professional\Raster\Documentation\API\.
The 'MapInfoProRaster.NET_SDK.chm' file at this path contains the API documentation and the Sample Code folder contains the samples in C#.
The samples does not contain mapbasic integration code as it is. But we can provide it based on the specific usecase.
------------------------------
sujit thakur
Knowledge Community Shared Account
Shelton CT
Original Message:
Sent: 11-15-2020 22:05
From: Alban Spella-Barberet
Subject: Raster SDK documentation and samples
Hello,
Is there Raster SDK document available to get started please?
I mean, if I remember the good old vertical mapper, it had code samples and documentation.
Is there such thing for Raster please?
Ideally with mapbasic integration.
Thanks
------------------------------
Alban Spella-Barberet
------------------------------