zhikrullah / pyshp

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

Deleting Shapes #23

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Deleting of the first line does not work. (nothing happend)

e = shapefile.Editor(shapefile="point")
e.delete(0)
e.save('point')

When deleting a line between first and last line, the shape is deleted, but the 
record is still there and so all records are shifted

e = shapefile.Editor(shapefile="point")
e.delete(1)
e.save('point')

( the old shape 2 has attributes of the old shape 1)

Environment:
Windows Vista SP2
Python 2.6.5
Pyshp 1.1.4

Original issue reported on code.google.com by frank.th...@gmail.com on 7 Dec 2011 at 2:38

GoogleCodeExporter commented 8 years ago

Original comment by geospati...@gmail.com on 7 Dec 2011 at 6:29