rgdal (version 0.5-26)

GDALMajorObject-class: Class "GDALMajorObject"

Description

"GDALMajorObject" is a virtual base class for all GDAL objects.

Usage

getDescription(object)

getMetadata(object, domain = "")

setMetadata(object, metadata)

appendMetadata(object, metadata)

Arguments

object
an object inheriting from "GDALMajorObject"
domain
the metadata domain (currently ignored)
metadata
a list of character strings

Objects from the Class

Objects can be created by calls of the form new("GDALMajorObject", ...), but are only created for classes that extend this class.

Methods

No methods defined with class "GDALMajorObject" in the signature.

Details

[object Object],[object Object],[object Object]

References

http://keittlab.bio.sunysb.edu/R/GDAL/, http://www.gdal.org/

See Also

GDALDriver-class, GDALReadOnlyDataset-class, GDALDataset-class and GDALTransientDataset-class

Examples

Run this code
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)

Run the code above in your browser using DataCamp Workspace