python 读取线 的shp文件
import shapefilernsf = shapefile.Reader(“E:\\1.2\\cs\\DX_CSL.shp”)rnshapes = sf.shapes()rnprint shapes[1].partsrnprint len(shapes) #79条记录rn#print len(list(sf.iterShapes())) #79条记录rn#for name in dir(sh
import shapefilernsf = shapefile.Reader(“E:\\1.2\\cs\\DX_CSL.shp”)rnshapes = sf.shapes()rnprint shapes[1].partsrnprint len(shapes) #79条记录rn#print len(list(sf.iterShapes())) #79条记录rn#for name in dir(sh