point2dem: Fix for large memory use