GDALDriver-class {rgdal} | R Documentation

## Class "GDALDriver": GDAL Driver Object

### Description

`GDALDriver` objects encapsulate GDAL file format drivers. `GDALDriver` inherits from `GDALMajorObject-class`.

### Usage

    getGDALDriverNames()
    getDriverName(driver)
    getDriverLongName(driver)

### Arguments

`driver` | An object inheriting from class 'GDALDriver'

### Details

`showGDALDriverNames`:
  returns all driver names currently installed in GDAL.
`getDriverName`:
  returns the GDAL driver name associated with the driver object.
`getDriverLongName`:
  returns a longer driver name.

### Objects from the Class

Objects can be created by calls of the form `new("GDALDriver", name, handle)`, where name: a string giving the name of a GDAL driver, handle: used internally; not for public consumption (default = NULL).

### Slots

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

### Extends

Class `"GDALMajorObject"`, directly.

### Methods

initialize
  `signature(.Object = "GDALDriver")`: drivername: a string giving the name of a GDAL driver, handle: used internally; not for public consumption (default = NULL)

### Author(s)

Timothy H. Keitt, modified by Roger Bivand

### See Also

`GDALMajorObject-class`

### Examples

    getGDALDriverNames()
    logo <- system.file("pictures/logo.jpg", package="rgdal")[1]
    x <- new("GDALReadOnlyDataset", logo)
    getDriver(x)
    getDriverLongName(getDriver(x))
    GDAL.close(x)

[Package rgdal version 0.4-4 Index]