Hello,
I'd like to export maps with 'r.out.gdal' in GRASS53 (compiled from sources on
a SuSE8.2 box). I end up with the error message:
ERROR: GDAL installation does not support GRASS.
Recompile GDAL libraries to use r.out.gdal.
I tried to recompile gdal (1.2.1) with the --with-grass flag (I didn't in a
first step), but it doesn't work: gdal looks for libgrass.h, which it can't
find (because there's no such file in my grass53 directory).
What should I do to get r.out.gdal running ?
[Actually, I'd need to get the projection information saved into a raster, and
r.out.tiff -t doens't do what I wan't]
Thanks a lot for any idea
P.
--
Soil & Water Laboratory
Dept. of Biological & Environmental Engineering
Cornell University
ITHACA, NY 14853
Tel: (607)255.2463
Hello,
I'd like to export maps with 'r.out.gdal' in GRASS53 (compiled from sources on
a SuSE8.2 box). I end up with the error message:
ERROR: GDAL installation does not support GRASS.
Recompile GDAL libraries to use r.out.gdal.
I tried to recompile gdal (1.2.1) with the --with-grass flag (I didn't in a
first step), but it doesn't work: gdal looks for libgrass.h, which it can't
find (because there's no such file in my grass53 directory).
What should I do to get r.out.gdal running ?
[Actually, I'd need to get the projection information saved into a raster, and
r.out.tiff -t doens't do what I wan't]
Thanks a lot for any idea
P.
Simplest way to get what you want is maybe r.out.tiff -t followed by
gdal_translate -a_srs `g.proj -wf` grassoutput.tif gdaloutput.tif
(run from within 5.7 to have g.proj working).
I think gdal_translate will read the .tfw file, the -a_srs option adds
the projection and it should all be merged into a proper GeoTIFF file?
> [Actually, I'd need to get the projection information saved into a
> raster, and r.out.tiff -t doens't do what I wan't]
Simplest way to get what you want is maybe r.out.tiff -t followed by
gdal_translate -a_srs `g.proj -wf` grassoutput.tif gdaloutput.tif
(run from within 5.7 to have g.proj working).
That' works nicely. You just have to remmber to quote the `g.proj -wf` (ie,
use "`g.proj -wf`" or "$(g.proj -wf)".
Thanks again !