[gdal-dev] Writing a tiff

Henning Bredel h_bred01 at uni-muenster.de
Thu Jan 15 15:45:19 EST 2009


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
-------------- 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/f3870a38/attachment.bin


More information about the gdal-dev mailing list