/// <summary> /// Creates and adds shape corresponding to grid value val to shapeFile /// </summary> /// <param name="shapeFile"></param> /// <param name="val"></param> /// <param name="shapeIndex">set to index of added shape</param> /// <returns>true if shape successfully added</returns> public bool InsertShape(MapWinGIS.Shapefile shapeFile, int val, ref int shapeIndex) { MapWinGIS.Shape shape = offset.makeShape(ShapesTable[val].polygons); if (shape == null) { return(false); } else { return(shapeFile.EditInsertShape(shape, ref shapeIndex)); } }