首页|两种DXF与KML转换方法及应用分析

两种DXF与KML转换方法及应用分析

扫码查看
为实现DXF与KML两种文件之间的相互转换,分析了DXF与KML的文件格式,实现了基于文件解析法进行DXF与KML文件的转换.研究了基于ogr2ogr库进行地理数据格式转换的流程,且基于 ogr2ogr库实现了 DXF与KML文件的转换.对比总结了两种方法的优劣.文件解析法可以自定义转换参数,但是支持文件少,转换要素易缺失,可以实现高精度转换;ogr2ogr转换法支持更多的文件格式,在CGCS2000 椭球下转换精度与文件解析法相当,在1954 年北京坐标下精度较低,经度方向差-2.556″,纬度方向差 0.602″,且程序移植复杂.转换结果可用于基础测绘、控制点管理、自然资源调查以及无人机摄影测量等多个方面.
Two DXF and KML Conversion Methods and Application Analysis
To achieve mutual conversion between DXF and KML files,the file formats of DXF and KML were analyzed,and the conver-sion of DXF and KML files was realized by file parsing.The process of geodata format conversion by ogr2ogr method is studied,and the con-version of DXF and KML files is realized based on the ogr2ogr library.The comparison summarizes the advantages and disadvantages of the two methods.The file parsing method can customize the conversion parameters,but there are few support files,and the conversion elements are easy to be missing,which can achieve high-precision conversion.The ogr2ogr conversion method supports more file formats,and the conver-sion accuracy is comparable to the file parsing method under CGCS2000 ellipsoid,and the accuracy is lower in the 1954 Beijing coordinates,with a longitude difference of-2.556″and a latitude difference of 0.602″,and the program transplantation is complicated.The conversion re-sults can be used in basic mapping,control point management,natural resource surveys,and drone photogrammetry.

KMLvector dataformat conversionfile parsing

杨军建、胡海波、张奎

展开 >

江苏建筑职业技术学院,江苏 徐州 221116

徐州市勘察测绘研究院有限公司,江苏 徐州 221018

KML 矢量数据 格式转换 文件解析法

2024

城市勘测
中国城市规划协会 武汉市测绘研究院

城市勘测

影响因子:0.488
ISSN:1672-8262
年,卷(期):2024.(5)