[gdal-dev] Writing a Tiff
    Henning Bredel 
    henning.bredel at uni-muenster.de
       
    Thu Jan 15 16:01:38 EST 2009
    
    
  
Hi there,
(not sure if my last mail came through)
I have read http://www.gdal.org/frmt_gtiff.html and I am
wondering if I have to build GDAL on my own to get the
possibility writing tiffs ..
I tried something like
,-----------------------------------.
bm.writeTiff <- function(bm,filename) {
        
        # GTiff ist standard but show it here, though
        driver <- new('GDALDriver', 'GTiff')
        
        t <- new("GDALTransientDataset",driver,nrow(bm),ncol(bm),
                        type="Int32")
        for (row in 1:nrow(bm)-1) {
                putRasterData(t,bm[row,1:(ncol(bm)-1)],offset=c(row,1))
        }
        
        saveDataset(t,filename)
        closeDataset(t)
}
`------------------------------------'
The code above runs into
Error in .local(.Object, ...) : 
  
        GDAL Error 6: GDALDriver::Create() ... no create method
implemented for
this format.
unfortunately.
Am I doing something wrong? Do you have got an alternative
for me? :)
Best regards
  Henning
-- 
 . . . no signature
Valid signature
-- 
 . . . no signature
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://lists.osgeo.org/pipermail/gdal-dev/attachments/20090115/6e771d80/attachment.bin
    
    
More information about the gdal-dev
mailing list