shape file "test.shp" containing one complex feature as clip mask;
raster file "raster1.tif" is raster to clip which value of earch cell is 9.5;
to do the clip with the code like:
IFeatureSet clipPolygon = FeatureSet.Open("test.shp");
IRaster rasterAfterClip = ClipRaster.ClipRasterWithPolygon(
"raster1.tif", clipPolygon.Features, "raster2.tif");
after clipping, in result file "raster2.tif":
1) the value of cell outside the polygon is assigned to nodata correctly;
2) but inside the polygon,some cell's value is assigned to nodata wrongly.
dotspatial version: 1.2
see attachment for detail.