I've just uploaded a new dev version of Geo::ShapeFile to CPAN which allows users to turn caching off.
https://metacpan.org/release/SLAFFAN/Geo-ShapeFile-2.63_001
Once that's installed, change the object creation line to be:
$shapefile = Geo::ShapeFile->new ("tabblock2010_42_pophu", {no_cache => 1});It's an all-or-nothing approach, but should be sufficient for this use case. I might in future try to add a maximum cache size option.
Other ideas and pull requests welcome.
Shawn
In reply to Re: Geo::ShapeFile memory problem
by swl
in thread Geo::ShapeFile memory problem
by rhzhang
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |