使用arcpy,将xml文件转换为shapefile文件
-
arcpy.CreateFeatureclass_management()创建要素集
-
arcpy.AddField_management()加入字段
-
xml.dom.minidom.parse() 逐行读取xml
-
arcpy.da.InsertCursor(shpfilename,("NAME","LNG","LAT","FROM_","SHAPE@XY"))建立Cursor
-
cursor.insertRow(scenicName,float(scenicLng),float(scenicLat),scenicFrom,(float(scenicLng),float(scenicLat)))) 逐行导入数据