Triangle coordinate diagram automatic recognition system software design based on WPF:a case study of soil texture
LI Jianbo1, FANG Zongqi2, JI Quanju3, WANG Weihua1
1.Faculty of Modern Agricultural Engineering, Kunming University of Science and Technology, Kunming, Yunnan 650500, China; 2.College of Information Science and Engineering, Shandong University of Science and Technology, Qingdao, Shandong 266500, China;3. School of Environmental Science and Engineering, Beijing Forestry University, Beijing 100083, China
Abstract:Based on the flat triangular coordinate diagram, the defects of artificial lookup method used for naming and classifying the three-component systems were pointed out. Taking soil texture classification triangle as example, the design idea of the soil texture automatic recognition system(STARS)was put forward and the method of parsing and programming for the classifying boundary of the above systems was introduced. Visual Studio was used as development tools, windows presentation foundation was used to implement system interface development(foreground code), C# language was used to complete the business logic(code-behind), and dynamic dependent libraries NPOI was used to achieve operating Excel file, and finally the STARS was created. The classes design and algorithm design required in the process of building the STARS were described, which intended to provide a method and theoretical guidance for the automatic recognition system establishment of other three-component system′s flat triangular coordinate diagram. The method is easy to learn, and the software interface is beautiful. Furthermore, the STARS has fast computing speed, large data processing capacity, zero false positives, high robustness and fault tolerance.
李建波, 房宗启, 纪全菊, 王卫华. 基于WPF的三角图自动识别系统构建方法——以土壤质地分类系统为例[J]. 排灌机械工程学报, 2016, 34(4): 339-345.
LI Jianbo, FANG Zongqi, JI Quanju, WANG Weihua. Triangle coordinate diagram automatic recognition system software design based on WPF:a case study of soil texture. Journal of Drainage and Irrigation Machinery Engin, 2016, 34(4): 339-345.
[1]GERAKIS A, BAER B. A computer program for soil textural classification[J]. Soil science society of america journal, 1999, 63(4): 807-808.[2]LIEBENS J. Spreadsheet macro to determine USDA soil textural subclasses[J]. Communications in soil science and plant analysis, 2001, 32(1/2): 255-265.[3]THE C B S, RASHID M A. Object-oriented code to lookup soil texture classes for any soil classification scheme[J]. Communications in soil science and plant analysis, 2003, 34(1/2): 1-11.[4]杨红卫, 汪新庆, 刘刚. 基于三角图命名岩类的计算机命名研究[J]. 地矿测绘, 2003, 19(3): 4-6. YANG Hongwei, WANG Xinqing, LIU Gang. The study about using computer to name rock which named basing on triangular diagram[J]. Surveying and mapping of geology and mineral resources, 2003, 19(3): 4-6.(in Chinese)[5]张萌, 黄思静, 冯文新, 等. 巧解砂岩分类三角图[J]. 成都理工大学学报(自然科学版), 2005, 32(4): 423-429. ZHANG Meng, HUANG Sijing, FENG Wenxin, et al. Further calculating plots in a triangle for the classification of sandstones[J]. Journal of Chengdu University of Technology(science & technology edition), 2005, 32(4): 423-429.(in Chinese)[6]张丽萍, 张镱锂, 王英安. 基于计算机图形学的土壤质地自动分类系统[J]. 地理科学进展, 2006, 25(3):86-95. ZHANG Liping, ZHANG Yili, WANG Ying′an. Automatic soil texture classification system based on compu-ter graphics[J] Progress in geography,2006, 25(3):86-95.(in Chinese)[7]郭彦彪, 戴军, 冯宏,等. 土壤质地三角图的规范制作及自动查询[J]. 土壤学报, 2013, 50(6):1221-1225. GUO Yanbiao, DAI Jun, FENG Hong, et al. Standard mapping of soil textural triangle and automatic query of soil texture classes[J]. Acta pedologica sinica, 2013, 50(6):1221-1225.(in Chinese)[8]张丽萍, 张镱锂, 王英安. 国内外土壤质地自动分类程序介绍[J]. 土壤通报, 2007, 38(5):989-992. ZHANG Liping, ZHANG Yili, WANG Ying′an. Computer programs of automatic classification for soil texture [J].Chinese journal of soil science, 2007, 38(5):989-992.(in Chinese)[9]邵明安,王全九,黄明斌. 土壤物理学[M]. 北京:高等教育出版社,2006.[10]琚彬. 基于WPF平台的自定义控件开发[D]. 西安:西安电子科技大学, 2008.[11]王卫华,李建波,王铄,等. 省域尺度土壤水气热参数空间变异特征及主控因子分析[J]. 排灌机械工程学报, 2015, 33(7): 626-633. WANG Weihua, LI Jianbo, WANG Shuo, et al. Provincial-scale spatial variation of soil water-air-thermal parameters and its main controlling factor analysis[J]. Journal of drainage and irrigation machinery enginee-ring, 2015, 33(7): 626-633.(in Chinese)