private string SetGPMask(IFeatureWorkspace workspace, List<IGeometry> geomList, IGeoProcessor2 gp, string fcName)
{
IFeatureClass maskFc = CreateMaskFeatureClass(workspace, fcName + "_" + RunCount.ToString());
foreach (IGeometry geom in geomList)
{
//create a new point feature
IFeature ipFeature = maskFc.CreateFeature();
ipFeature.Shape = geom;
ipFeature.Store();
}
IDataset ds = (IDataset)maskFc;
string path = ds.Workspace.PathName + "\\" + ds.BrowseName;
gp.SetEnvironmentValue("mask", path);
return path;
}