Hi there,

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 try something like

,-----------------------------------.
bm.writeTiff <- function(bm,filename) {
        
        # GTiff ist standard but show it here, though
        driver <- new('GDALDriver', 'JPEG2000')
        
        tiff <- new("GDALTransientDataset",driver,nrow(bm),ncol(bm),
                        type="Int32")

        for (row in 1:rowlength) {
                putRasterData(tiff,bm[row,1:ncol(bm)],offset=c(row,1))
        }
        
        saveDataset(tiff,filename)
        closeDataset(tiff)
}
`------------------------------------'

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

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to