tarsh / pyshp

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

No good way of incrementally appending data to a file #39

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Get a really large shapefile.
2. Load it in memory.
3. Now try to write it to a file.

What is the expected output? What do you see instead?
The output is exactly as expected, but the memory requirements of the program 
are very high. 
There is no good way of incrementally appending data to an output file. The 
save method can be provided file handlers instead of file names, but it does a 
seek(0) in the __*Header methods and then does a seek(100) in the __*Records 
method and over-rides any data already written to the output file. An "append" 
type version of the save method would be very useful for dealing with large 
files.

Original issue reported on code.google.com by chhabra....@gmail.com on 27 Sep 2012 at 3:47

GoogleCodeExporter commented 9 years ago

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