Displaying 3 results from an estimated 3 matches for "getdriverlongname".
2009 Jun 15
1
display SVG, PNG, GIF, JPEG, TIFF, PPM in new plot frame
...----------------
# package 'rgdal' -- requires system library and
# headers for the 'GDAL' geospatial data library
library(rgdal)
p <- system.file("my.png", package = "rgdal")
h <- GDAL.open(p) # returns a file handle
getDriverLongName(getDriver(h)) # should report "Portable Network Graphics"
displayDataset(h)
GDAL.close(h)
# note that recent versions of 'ReadImages' (see
# the JPEG section) will also read PNG [is the call
# still 'read.jpg'? -- or is it now 'read.png'?]...
2004 Jan 22
0
help on rgdal package
...ow to remove
the NA-values from an object of class GDALDataset in order to get a
rectangular dataset?
Also, the function saveDataset doesn't seem to work for these kind of data
(or at least for me). I get the following error:
> x <- new("GDALDataset", "xxx.dem")
> getDriverLongName(getDriver(x))
[1] "USGS Optional ASCII DEM"
> saveDataset(x,"xxx.data")
Error in .local(.Object, ...) :
GDAL Error 6: GDALDriver::Create() ... no create method implemented for this format.
Or should the dataset be raster data? Then I get:
> rd<-getRasterData(...
2005 Nov 21
3
PNG-import into R
Hi there
I'm looking for a function to read PNG-bitmap-images from a file into R.
I only found:
- the pixmap-package which cannot import png or similar formats
- the rimage-package which can only import lossy jpeg-images (the
convertion from png to jpeg modifies the data!)
Is there any possibility to read PNG-files?
Thanks for any help
Dominic Sydler