Can someone please provide an example to show how this would work.
For example, I am trying to convert from .GRD to .ASC, would my MapBasic code look like this:
public void Convert(string "C:\Users\file1.grd", string "C:\Users\Converted", string ESRI ASCII and Float grids)
{
RasterProcessing.Convert(string "C:\Users\file1.grd", string "C:\Users\Converted", ESRI ASCII and Float grids);
}
Clearly I am doing something wrong here as I get unrecognized command error from MapInfo.
Could someone please explain how to rectify this.
I have looked at a similar post here: mapbasic convert raster to mrr
but was not able to find success. I tried the manual too and I wasnt sure how to address the parameters.
Edit:
I am really new to coding in general. I was under the impression that this code needed to be input into the MapBasic window to run. I tried editing the code to something like this but it failed:
Dim strInFilePath as string
strInFilePath = "C:\New folder\trial.grd"
Dim strOutFilePath as string
strOutFilePath = strInFilePath
Dim strDriver as string
strDriver = "ESRI ASCII and Float grids (*.asc)"
public void Convert(strInFilePath, strOutFilePath, strDriver)
{
RasterProcessing.Convert(strInFilePath, strOutFilePath, strDriver)
}