gdal.GDALDrivers
An collection of all drivers registered with GDAL.
Table of Contents
Methods
count
()
Integer
Returns the number of drivers registered with GDAL.
Returns:
Integer
forEach
(
-
callback
Iterates through all registered drivers using a callback function.
Parameters:
-
callback
FunctionThe callback to be called with each Driver
Example:
gdal.drivers.forEach(function(driver, i) { ... });`
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 | String0-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
Iterates through all drivers using a callback function and builds an array of the returned values.
Parameters:
-
callback
FunctionThe callback to be called with each Driver
Example:
var result = gdal.drivers.map(function(driver, i) {
return value;
});`