GDALMajorObject-class {rgdal}R Documentation

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

Details

getDescription:
returns a descrption string associated with the object. No setter method is defined because GDAL dataset objects use the description to hold the filename attached to the dataset. It would not be good to change that mid-stream.
getMetadata:
returns a list of metadata strings. Keys are returned as item names in the list.
setMetadata:
sets the metadata to the supplied list of strings. List item names will be used to generate metadata key names.

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.

Slots

handle:
Object of class "externalptr", used internally; not for public consumption

Methods

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

Author(s)

Timothy H. Keitt, modified by Roger Bivand

References

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

See Also

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

Examples


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)


[Package rgdal version 0.5-9 Index]