The decision tree is one of the common modeling methods to classify. Firstly, this paper introduces the concept of classification and the method of the decision tree. Then, this paper analyses the data of rural labor, arable land area and the gross output value of agriculture about 30 cities of China based on the decision tree, and adopts clustering analysis method to discretize continuous data during the process of data mining in order to subjectivity comparing to the traditional classification methods. Finally, generating the decision tree of our agriculture, thereby gaining the spatial classification rules and analyzing the rules.