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.
-Jamie On Mon, Apr 27, 2009 at 3:57 AM, massimo di stefano <[email protected] > wrote: > Hi All, i'm having problems using gdal (svn version) from grass6.5 > to export elevation data in format 'GTIF' type 'Byte' > > Tring to export an elevation file from grass (elevation.10m from > speardfish60 dataset) > in format "GTIF" type "UINT32" > > -- > $g.region rast=elevation.10m -ap > $r.out.gdal input=elevation....@permanent format=GTiff type=UInt32 > output=/home/sasha/elev.tif > -- > > The grass version compiled using gdal from reposytory works fine, > while the grass compiled using gdal from svn give me a corrupted file. > The corrupted file has only 1/2 data ... the boundy box is correct, > but half of its data is set to 0 > > Please tell me if can i provide any log details, > or maybe instruction to compile gdal to have verbose log > .... or gdal commandline to test these particolar case-problem > > (other format in r.out.gdal seems to works fine, but i don't tried all) > > > i've on my system (sidux64bit) 2 different gdal. > > 1) gdal from the debian gis repository, Version = 1.5.4-3 ; > 2) gdal-svn, Version = 1.7.0dev, released 2008/11/26) > > building from source grass (6.5 svn) : > > 1- using --with-gdal=/usr/bin/gdal-config > 2- using --with-gdal=/usr/local/gdal/bin/gdal-config > > > > These the procedure i'm following to build gdal and grass : > > 1) checkout gdal and grass6.5 from the relaive svn repo. > > 2) download ecw lib, gdal-grass plug-in > > 3) build ecw > > 4) build gdal using : > ../configure --with-python > > 5) add gdal to ld path : > thouch /etc/ld.so.conf.d/gdal.conf > echo "/usr/local/gdal/lib" > /etc/ld.so.conf.d/gdal.conf > ldconfig > > > > 6) build grass using : > > gdal-repo : > > ../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 > --with-gdal=/usr/bin/gdal-config > > gdal-svn : > > ../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 > --with-gdal=/usr/local/gdal/bin/gdal-config > > 7) add grass to ld : > touch /etc/ld.so.conf.d/grass.conf > echo "/usr/local/grass-6.5.svn/lib" > /etc/ld.so.conf.d/grass.conf > > > > 8) build gdal-grass using : > ../configure --with-gdal=/usr/local/gdal/bin/gdal-config > --with-grass=/usr/local/grass-6.5.svn/ > > > 9) compile gdal with grass support : > cd gdal ; make clean ; make dist clean > ../configure --with-python --with-grass=/usr/local/grass-6.5.svn/ > > > > Thanks for any help and suggestion > > > > > > Massimo Di Stefano > [email protected] > > epifanio on irc.freenode.net /join gfoss > > > > > > > > > > > > > > Chiacchiera con i tuoi amici in tempo reale! > http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com > _______________________________________________ > gdal-dev mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/gdal-dev >
_______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
