我试图在windows机器上使用pyshp创建一个shapefile。我有一个很长的坐标集,我可以使用,但第一步是让这个小的集工作。在
import shapefile as sf
w=sf.Writer(sf.POINT)
w.point(30.1,30)
w.point(50.1,30)
w.point(70.1,30)
w.point(90,1,30)
w.field('LAT')
w.field('LONG','C','40')
w.record('First','Point')
w.record('Second','Point')
w.record('Third','Point')
w.record('Fourth','Point')
w.save('testpoints')
我一直收到这个错误:
AttributeError:“module”对象没有属性“Writer”
我在输入'sf'后从内置的下拉栏中选择Writer属性,所以我知道shapefile确实有这个属性。它具体地说是“作家”而不是“作家”。在
有人熟悉皮什普吗?在
目前没有回答
相关问题 更多 >
编程相关推荐