更新 ENVIxml2csv_czh.py

main
chenzenghui 2024-01-12 00:53:18 +08:00
parent 879f1dc09c
commit 231284f652
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ root = tree.getroot()
# 创建CSV文件
with open(csv_file, 'w', newline='', encoding='UTF-8') as csvfile:
with open(csv_file, 'a', newline='', encoding='UTF-8') as csvfile:
csvwriter = csv.writer(csvfile)
# 写入CSV标题行
csvwriter.writerow(['parent_id','id','covernm','roi_polygon'])