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.