Clip raster by polygon
I believe this method is already in MapWinGIS.
I'm not sure if it is already mapped to MW5.API.
Anyway the tool is not present in the toolbox.
It works great, it is just not clear what output format will be used.
I tested it with a vrt-file with ECW files and a file with vrt extension is created but when I look at its properties it says EHdr and the coloring is lost.
Perhaps adding a output format to the dialog would make it more clear and default it to TIFF?
The tool is committed. It works with a single polygon only. A new issue is created for the problem of passing projection to the resulting grid: MWGIS-15.
I just quickly looked at the GisUtils class and it already has a ClipGridWithPolygon() method which implements MapWinGIS.ClipGridWithPolygon and MapWinGIS.ClipGridWithPolygon2.
Now only the tool needs to be created.