To cater to emergent ground observation requests,research on onboard task planning for an earth-observation spacecraft with orbit maneuvering abilities is conducted.The onboard task planning application scenario is established for a spacecraft with orbit maneuvering abilities observ-ing ground targets.The constraint conditions of a spacecraft observing ground targets are analyzed and modeled.Then,two types of onboard task planning algorithms are proposed based on the con-straint models and Lambert's orbital maneuver.The rapidity,accuracy,and feasibility of the pro-posed two types of onboard task planning algorithms are verified.Related research results in this paper are expected to serve in the onboard task planning for spacecrafts.