MapWindow can change grid format. It’s fast. So, I’m curious how it’s complemented.
Based on the latest source code, following procedure is found.
The GisToolsPlugin add items to toolbox. When user double-clicks specific item, this plugin responds correspondingly. For “change grid formats”, the function mnuChangeGridFormats in Module GisTools is called. After user sets all the options in frmOutput window, the function in class MapWinGeoProc.DataManagement is called. In this function, the class grid in COM library MapWinGIS is used to do the real job.
It seems that the source code of MapWinGIS is not the latest one. It may use GDAL to change grid format now.
GDAL in MapWindow
GDAL is used in MapWinGIS. Following classes use GDAL.
- tkGridRaster: Generic grid wrapper class to allow MapWinGIs to utilize formats supported by GDAL
- tkRaster: tkRaster.h/cpp
- CUtils: Utils.h/cpp
- CGrid: Grid.h/cpp
- CImageClass: image.h/cpp, uses tkRaster