/// <summary> /// Runs the tool. /// </summary> public override bool Run(ITaskHandle task) { var grid = new GridSource(GridFilename); bool result; try { result = GisUtils.Instance.GridStatisticsToShapefile(grid, Vector.Datasource, Vector.SelectedOnly, OverwriteFields); } catch (Exception) { grid.Dispose(); throw; } return(result); }
public void Dispose() { GridSource?.Dispose(); Dispose(true); GC.SuppressFinalize(true); }