The search for the excitation of two-dimensional rogue wave in a (2+1)-dimensional nonlinear evolution model is a research hotspot. In this paper, the self-similar transformation of the (2+1)-dimensional Zakharov equation is established, and this equation is transformed into the (1+1)-dimensional nonlinear Schrödinger equation. Based on the similarity transformation and the rational formal solution of the (1+1)-dimensional nonlinear Schrödinger equation, the rogue wave excitation of the (2+1)-dimensional Zakharov equation is obtained by selecting appropriate parameters. We can see that the shape and amplitude of the rogue waves can be effectively controlled. Finally, the propagation characteristics of line rogue waves are diagrammed visually. We also find that the line-type characteristics of two-dimensional rogue wave are present in the
x-yplane when the parameter
$ \gamma = 1 $
. The line rogue wave is converted into discrete localized rogue wave in the
x-yplane when the parameter
$ \gamma \ne 1 $
. The spatial localized rogue waves with short-life can be obtained in the required
x-yplane region. This is similar to the Peregrine soliton (PS) first discovered by Peregrine in the (1+1)-dimensional NLS equation, which is the limit case of the “Kuznetsov-Ma soliton” (KMS) or “Akhmediev breather” (AB). The proposed approach to constructing the line rogue waves of the (2+1) dimensional Zakharov equation can serve as a potential physical mechanism to excite two-dimensional rogue waves, and can be extended to other (2+1)-dimensional nonlinear systems.