坐标点数据要组织成这种格式:(501,502是要建立的线段的id号)
501
111.377102,30.657828
111.346888,30.665661
111.332530,30.661535
111.305474,30.640989
111.253989,30.656406
111.233364,30.666947
111.188284,30.713764
111.148334,30.700070
111.123222,30.703887
111.101559,30.686984
end
502
109.497823,30.363756
109.454765,30.336090
109.448972,30.326169
109.442498,30.319964
109.432894,30.306321
109.429526,30.298721
109.423480,30.292927
109.409090,30.282754
end
end
然后,可以用arctoolbox 里边的 generate命令(generate to coverage winzard),先生成coverage;
然后,在cmd ,中运行 arc 命令 ,
运行 clean <inputfile> <outputfile> 0.000000 0.000001 LINE 建立新生成的coverage的拓扑关系(info),
clean 命令的具体参数见帮助文档。
再运行 arctoolbox中的 coverage to shapefile 命令,将上一步生成的带有拓扑关系的coverage,转化成shape格式。(要是coverage 没有建立拓扑关系的话,用 coverage to shapefile 命令的时候,会出错的)