I had a similar issue with gdal gtiff output awhile back and solved it by using the internal gdal libtiff. Try using "--with-libtiff=internal" when compiling gdal.<br><br>-Jamie<br><br><div class="gmail_quote">On Mon, Apr 27, 2009 at 3:57 AM, massimo di stefano <span dir="ltr"><<a href="mailto:massimodisasha@yahoo.it">massimodisasha@yahoo.it</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi All, i'm having problems using gdal (svn version) from grass6.5<br>
to export elevation data in format 'GTIF' type 'Byte'<br>
<br>
Tring to export an elevation file from grass (elevation.10m from speardfish60 dataset)<br>
in format "GTIF" type "UINT32"<br>
<br>
--<br>
$g.region rast=elevation.10m -ap<br>
$r.out.gdal input=elevation.10m@PERMANENT format=GTiff type=UInt32 output=/home/sasha/elev.tif<br>
--<br>
<br>
The grass version compiled using gdal from reposytory works fine,<br>
while the grass compiled using gdal from svn give me a corrupted file.<br>
The corrupted file has only 1/2 data ... the boundy box is correct,<br>
but half of its data is set to 0<br>
<br>
Please tell me if can i provide any log details,<br>
or maybe instruction to compile gdal to have verbose log<br>
.... or gdal commandline to test these particolar case-problem<br>
<br>
(other format in r.out.gdal seems to works fine, but i don't tried all)<br>
<br>
<br>
i've on my system (sidux64bit) 2 different gdal.<br>
<br>
1) gdal from the debian gis repository, Version = 1.5.4-3 ;<br>
2) gdal-svn, Version = 1.7.0dev, released 2008/11/26)<br>
<br>
building from source grass (6.5 svn) :<br>
<br>
1- using --with-gdal=/usr/bin/gdal-config<br>
2- using --with-gdal=/usr/local/gdal/bin/gdal-config<br>
<br>
<br>
<br>
These the procedure i'm following to build gdal and grass :<br>
<br>
1) checkout gdal and grass6.5 from the relaive svn repo.<br>
<br>
2) download ecw lib, gdal-grass plug-in<br>
<br>
3) build ecw<br>
<br>
4) build gdal using :<br>
../configure --with-python<br>
<br>
5) add gdal to ld path :<br>
thouch /etc/ld.so.conf.d/gdal.conf<br>
echo "/usr/local/gdal/lib" > /etc/ld.so.conf.d/gdal.conf<br>
ldconfig<br>
<br>
<br>
<br>
6) build grass using :<br>
<br>
gdal-repo :<br>
<br>
../configure --with-tcltk-includes=/usr/include/tcl8.5/ --with-ffmpeg --with-ffmpeg-includes=/usr/include/ffmpeg/ --enable-64bit --with-cxx --with-cairo --with-readline --with-sqlite --with-python --with-wxwidgets=/usr/bin/wx-config --with-postgres --with-postgres-includes=/usr/include/postgresql/ --with-odbc--with-freetype --with-freetype-includes=/usr/include/freetype2/ --with-motif --with-proj-share=/usr/share/proj/ --enable-largefile<br>
--with-gdal=/usr/bin/gdal-config<br>
<br>
gdal-svn :<br>
<br>
../configure --with-tcltk-includes=/usr/include/tcl8.5/ --with-ffmpeg --with-ffmpeg-includes=/usr/include/ffmpeg/ --enable-64bit --with-cxx --with-cairo --with-readline --with-sqlite --with-python --with-wxwidgets=/usr/bin/wx-config --with-postgres --with-postgres-includes=/usr/include/postgresql/ --with-odbc--with-freetype --with-freetype-includes=/usr/include/freetype2/ --with-motif --with-proj-share=/usr/share/proj/ --enable-largefile<br>
--with-gdal=/usr/local/gdal/bin/gdal-config<br>
<br>
7) add grass to ld :<br>
touch /etc/ld.so.conf.d/grass.conf<br>
echo "/usr/local/grass-6.5.svn/lib" > /etc/ld.so.conf.d/grass.conf<br>
<br>
<br>
<br>
8) build gdal-grass using :<br>
../configure --with-gdal=/usr/local/gdal/bin/gdal-config --with-grass=/usr/local/grass-6.5.svn/<br>
<br>
<br>
9) compile gdal with grass support :<br>
cd gdal ; make clean ; make dist clean<br>
../configure --with-python --with-grass=/usr/local/grass-6.5.svn/<br>
<br>
<br>
<br>
Thanks for any help and suggestion<br>
<br>
<br>
<br>
<br>
<br>
Massimo Di Stefano<br>
<a href="mailto:massimodisasha@yahoo.it" target="_blank">massimodisasha@yahoo.it</a><br>
<br>
epifanio on <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> /join gfoss<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
Chiacchiera con i tuoi amici in tempo reale!<a href="http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com" target="_blank">http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com</a><br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</blockquote></div><br>