pyshp创建shp点文件
# coding:utf-8nimport shapefilennnw = shapefile.Writer()nw.autoBalance = 1nw = shapefile.Writer(shapefile.POINT)nw.field(‘x’, ‘C’)nw.field(‘y’, ‘C’, ’40’)nw.field(‘v’, ‘C’, ’40’)nnn# with open(‘data’)
# coding:utf-8nimport shapefilennnw = shapefile.Writer()nw.autoBalance = 1nw = shapefile.Writer(shapefile.POINT)nw.field(‘x’, ‘C’)nw.field(‘y’, ‘C’, ’40’)nw.field(‘v’, ‘C’, ’40’)nnn# with open(‘data’)