摘要
基于方格网的数字地面模型常面临不规则图幅边界处理等问题.设计了应用MAT LAB建立DEM的算法、函数的调用格式及其工具箱界面.讨论了规则与不规则图幅边界处理和等高线遇地物断开的问题:将不规则图幅边界和地物都看作多边形,求得各边界线段经过的网格单元,相应编码为1,将边界外的单元编码为0;将地物轮廓线经过的单元编码为2,其包含的单元编码为0,设编码为0的各单元的高程为非数NaN,则其等高线不会绘出.对于图幅拼接,设置各图幅的'Position'属性进行定位即可.通过实例运行,验证了方案的正确性.
According to the construction and application of digital elevation model corresponding calculation and the format of the MATLAB function are introduced.Each subprogram about inputting point information is studied, such as the contour line, the cross section, three-dimensional figure and designing toolbox interface.The problem for the regular or anomalistic diagram boundary handling and contour cut falling across ground object is discussed and the solution is that the regular or anomalistic diagram boundary and ground object can be regarded as polygon for gridding cells passing every boundary' s line. Their corresponding coding is 1, outside cell's coding is 0; the coding of gridding cells passing outline of ground object is 2,inside one is 0. When elevation of cells coding 0 as non-number NaN, so their contour won' t be drawn.For anastomosis of diagram, set its position attribute for orientation. By experiment, the project correctness is proved.
出处
《桂林工学院学报》
2003年第4期453-456,共4页
Journal of Guilin University of Technology
基金
广西区科技攻关项目(桂科攻0330008-7)
关键词
工具箱
函数
插值
网格
编码
toolbox
function
insert numerical value
mesh
coding