Hi Grass Users
I'm posting this small patch in case it might be useful to someone. I
recently started importing large image files using the r.in.arctiff
utility in my current project, but found that the current script, which
is the same in GRASS4.2 and GRASS5, sometimes imports the header
information from the tiff file incorrectly. The problem is in the line
that imports the width/height dimensions, which sometimes reads the
wrong line depending on the system/image.
Also as I receive most of my images from a WinDOS system, occasionally
there are images with spaces in the names. The original script doesn't
import these properly, so this has been fixed with spaces replaced by
underscores in the imported raster file.
Hopefully these changes will elliminate these problems (I haven't tested
it on GRASS5 yet though). I know there are sometimes peoblems with the
r.in.tiff binary segfaulting, and of course these changes won't affect
that which is a separate issue.
# patch -p1 < r_in_arctiff.diff
in the same directory as the orig. file. [r.in.arctiff]
D D Gray
(attachments)
r_in_arctiff.diff (6.21 KB)