关于arcpy.da.FeatureClassToNumPyArray的一些应用
import arcpynimport numpy as npnnfc=ur”E:\test.shp”narray=arcpy.da.FeatureClassToNumPyArray(fc,(“Name_CHN”,”Price”))nprint array[array[“Name_CHN”]==u”北京市”][“Price”].ptp()nprint array[array[“Name_CHN”]
import arcpynimport numpy as npnnfc=ur”E:\test.shp”narray=arcpy.da.FeatureClassToNumPyArray(fc,(“Name_CHN”,”Price”))nprint array[array[“Name_CHN”]==u”北京市”][“Price”].ptp()nprint array[array[“Name_CHN”]