[GRASS-user] Problem exporting an ascii file bigger than 2Gb

Hello everybody,
I'm trying to export into ascii a raster map about 250mill of cells with both r.out.ascii and r.out.gdal. But when the ascii file arrives to 2Gb, the module stops exporting the raster map. I'm not sure this is a GRASS problem since I used the option "--enable-largefile" during compilation.

What do you think? Any hint on how to solve it?

Thanks,
Roberto.

--
Roberto Antolín Sánchez
Politecnico di Milano – Polo Regionale di Como
(Laboratorio di Geomatica V2.8)
Via Valleggio, 11 – 22100 Como, Italy
tel: +39 031 332 7533 || fax: +39 031 332 7519 email: roberto.antolin@polimi.it

2007/3/14, Roberto Antolin <roberto.antolin@polimi.it>:

Hello everybody,
I’m trying to export into ascii a raster map about 250mill of cells with
both r.out.ascii and r.out.gdal. But when the ascii file arrives to 2Gb,
the module stops exporting the raster map. I’m not sure this is a GRASS
problem since I used the option “–enable-largefile” during compilation.

What do you think? Any hint on how to solve it?

Hi Roberto,

are you exporting into a fat32 or ext2/3partition? I had similar problem, no grass related indeed.

In my experience writing stopped at 4Gb on a fat32 fs partition, but for ext2/3 is 2Gb.

Look at http://www.suse.de/~aj/linux_lfs.html

Thanks,
Roberto.

raffaele

Roberto Antolin wrote:

I'm trying to export into ascii a raster map about 250mill of cells with
both r.out.ascii and r.out.gdal. But when the ascii file arrives to 2Gb,
the module stops exporting the raster map. I'm not sure this is a GRASS
problem since I used the option "--enable-largefile" during compilation.

--enable-largefile only affects certain files which are used
internally. It doesn't automatically enable LFS on all files, as not
all of GRASS can handle large files.

What do you think? Any hint on how to solve it?

Using:

  r.out.ascii mapname > outfile.txt

may work, so long as the shell was built with LFS.

For r.out.gdal, the issue is likely to be whether GDAL was built with
LFS.

--
Glynn Clements <glynn@gclements.plus.com>

Hi all,

Using:

r.out.ascii mapname > outfile.txt

may work, so long as the shell was built with LFS.

Thank you, Glynn. I worked nicely! The final ascii raster file was 3.3Gb

Regards,
Roberto.

--
Roberto Antolín Sánchez
Politecnico di Milano – Polo Regionale di Como
(Laboratorio di Geomatica V2.8)
Via Valleggio, 11 – 22100 Como, Italy
tel: +39 031 332 7533 || fax: +39 031 332 7519 email: roberto.antolin@polimi.it