zhikrullah / pyshp

Automatically exported from code.google.com/p/pyshp
MIT License
0 stars 0 forks source link

Cannot create POLYGONZ #38

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

outShp = shapefile.Writer(shapefile.POLYGONZ)
outShp.field('id','N','10')
poly = [ [(0,0,0), (1,0,0), (1,0,1), (0,0,1), (0,0,0)] ]
outShp.poly(poly, shapeType=15)
outShp.record(1)
outShp.save(outShpPath)

What is the expected output? What do you see instead?

File "C:\Python32\lib\site-packages\shapefile.py", line 863, in save
    self.saveShp(target)
File "C:\Python32\lib\site-packages\shapefile.py", line 831, in saveShp
    self.__shpRecords()
File "C:\Python32\lib\site-packages\shapefile.py", line 678, in __shpRecords
    f.write(pack("<%sd" % len(s.z), *s.z))
AttributeError: '_Shape' object has no attribute 'z'

What version of the product are you using? On what operating system?
1.1.6-beta

Please provide any additional information below.

no error with 1.1.4

Original issue reported on code.google.com by doml...@gmail.com on 23 Jul 2012 at 12:03

GoogleCodeExporter commented 8 years ago

Original comment by jlawh...@geospatialpython.com on 2 May 2013 at 4:59