我正在使用python从突出显示地址的shapefile中导出CSV。我想在R中使用这些数据来衡量环境暴露。
这是我的ArcPY代码:
arcpy.TableToTable_conversion(
in_rows = os.path.join("addresses.shp"),
out_path = os.path.join(directory),
out_name= 'addresses' + '.csv')
shapefile中有大约140万个功能。共有16个字段,包括FID。
我在导出后将表读入R中。不幸的是,1,012,486之后的所有特征的字段值都等于FID = 1,012,486的特征。
为什么会这样?是否有任何变通办法不需要将shapefile分解为多个文件?