[GRASS5] i.rectify and large files
Wolf Bergenheim
wolf+grass at bergenheim.net
Fri Apr 7 04:39:34 EDT 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi all!
I'm having trouble with the i.rectify and my (quite large) TIFF image.
when I run i.rectify it stops with
ERROR: error while writing to temp file
I added some debug messages and see that it fails because the temp file is
larger then 2 GB. I reconfigured GRASS with both --enable-largefile and
- --enable-64bit, but no help. Looking more closely at i.rectify I see that
it uses open(temp_name, 0) to open the temp file. Okay so the problem is
probably here, on line 56 in file write.c of i.rectify. I tried to add the
O_LARGEFILE flag, but now it doesn't get compiled as I'm not able to
convince the compiler that I want to have large file support for this code
as well. What can I do? Is there perhaps some GRASS lib function to open
possibly large files?
- --Wolf
- --
<:3 )---- Wolf Bergenheim ----( 8:>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
iD8DBQFENiVg7wAiM835oB0RApqeAJ9RxGQvNkUA/1ZvwEBkkDjn4g5YbACgrKty
wJRc//cd8qMILfZuAON+Cjk=
=0iRu
-----END PGP SIGNATURE-----
More information about the grass-dev
mailing list