laptop and a wrench

漏洞

Comma-separated value (CSV) files created using Python do not display properly in ArcGIS 10.1.

上次发布: August 25, 2014 ArcGIS for Desktop
漏洞 ID 编号 NIM090420
已提交April 8, 2013
上次修改时间June 5, 2024
适用范围ArcGIS for Desktop
找到的版本10.1
操作系统Windows OS
操作系统版本7 64 Bit
修正版本10.2.1
状态Fixed

解决办法

Use the CSV module to create the file. For example:import arcpy, csv, sys, osrelPath = sys.path[0]tableFile2 = relPath + os.sep + "address_module.csv"theTXTfile2 = open(tableFile2, 'wb')writeTXTfile = csv.writer(theTXTfile2, delimiter=',')writeTXTfile.writerow(["STREET", "ZIP"])writeTXTfile.writerow(["123 ESRI WAY", "95817"])theTXTfile2.close()Note: The original script appends a new line "\n" to the field names line, but not to the data lines. If it is appended after the address, the original script will work. This is the step that the Python CSV module adds to make it work.

重现步骤

漏洞 ID: NIM090420

软件:

  • ArcGIS for Desktop

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项