Show:

An collection of all drivers registered with GDAL.

Methods

count () Number

Returns the number of drivers registered with GDAL.

Returns:

Number
forEach
(
  • callback
)

Iterates through all drivers using a callback function.

Parameters:

  • callback forEachCb

    The callback to be called with each Driver

Example:

gdal.drivers.forEach(function(array, 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 Number | 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<U>
(
  • callback
)
U[]

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

Parameters:

  • callback mapCb

    The callback to be called with each Driver

Returns:

U[]

Example:

var result = gdal.drivers.map(function(array, i) {
    return value;
});`
Symbol.iterator ()

Iterates through all drivers using an iterator

Example:

for (const array of gdal.drivers) {
}