Show:

An collection of all drivers registered with GDAL.

Methods

count () Integer

Returns the number of drivers registered with GDAL.

Returns:

Integer
forEach
(
  • callback
)

Defined in lib/gdal.js:441

Iterates through all registered drivers using a callback function.

Parameters:

  • callback Function

    The callback to be called with each Driver

Example:

gdal.drivers.forEach(function(driver, i) { ... });
get
(
  • index
)
gdal.Driver

Returns a driver with the specified name.

Note: Prior to GDAL2.x there is a separate driver for vector VRTs and raster VRTs. Use "VRT:vector" to fetch the vector VRT driver and "VRT:raster" to fetch the raster VRT driver.

Parameters:

  • index Integer | String

    0-based index or driver name

Returns:

getNames () String[]

Returns an array with the names of all the drivers registered with GDAL.

Returns:

String[]
map
(
  • callback
)

Defined in lib/gdal.js:454

Iterates through all drivers using a callback function and builds an array of the returned values.

Parameters:

  • callback Function

    The callback to be called with each Driver

Example:

var result = gdal.drivers.map(function(driver, i) {
    return value;
});