| GDALMajorObject-class {rgdal} | R Documentation |
"GDALMajorObject" is a virtual base class for all GDAL objects.
getDescription(object) getMetadata(object, domain = "") setMetadata(object, metadata) appendMetadata(object, metadata)
object |
an object inheriting from "GDALMajorObject" |
domain |
the metadata domain (currently ignored) |
metadata |
a list of character strings |
getDescription:getMetadata:setMetadata:
Objects can be created by calls of the form new("GDALMajorObject", ...), but are only created for classes that extend this class.
handle:"externalptr", used internally; not for public consumptionNo methods defined with class "GDALMajorObject" in the signature.
Timothy H. Keitt, modified by Roger Bivand
http://keittlab.bio.sunysb.edu/R/GDAL/, http://www.gdal.org/
GDALDriver-class,
GDALReadOnlyDataset-class, GDALDataset-class and
GDALTransientDataset-class
driver <- new('GDALDriver', as.character(getGDALDriverNames()[1,1]))
setMetadata(driver, list(Key = 'Test metadata'))
getMetadata(driver)
rm(driver)
logo <- system.file("pictures/logo.jpg", package="rgdal")[1]
x <- new("GDALReadOnlyDataset", logo)
getDescription(x)
getMetadata(x)
dim(x)
GDAL.close(x)