gdal.Driver
Format specific driver.
An instance of this class is created for each supported format, and manages information about the format.
This roughly corresponds to a file format, though some drivers may be gateways to many formats through a secondary multi-library.
Table of Contents
Methods
copyFiles
-
name_old
-
name_new
Copy the files of a dataset.
Parameters:
-
name_old
StringNew name for the dataset.
-
name_new
StringOld name of the dataset.
create
-
filename
-
x_size=0
-
y_size=0
-
band_count=0
-
data_type=gdal.GDT_Byte
-
creation_options
Create a new dataset with this driver.
Parameters:
-
filename
String -
[x_size=0]
Integer optionalraster width in pixels (ignored for vector datasets)
-
[y_size=0]
Integer optionalraster height in pixels (ignored for vector datasets)
-
[band_count=0]
Integer optional -
[data_type=gdal.GDT_Byte]
Integer optionalpixel data type (ignored for vector datasets) (see data types)
-
[creation_options]
String[] | Object optionalAn array or object containing driver-specific dataset creation options
Returns:
gdal.Dataset
createCopy
-
filename
-
src
-
strict=false
-
options=null
Create a copy of a dataset.
Parameters:
-
filename
String -
src
gdal.Dataset -
[strict=false]
Boolean optional -
[options=null]
String[] | Object optionalAn array or object containing driver-specific dataset creation options
Returns:
gdal.Dataset
deleteDataset
-
filename
Parameters:
-
filename
String
getMetadata
-
domain
Returns metadata about the driver.
Parameters:
-
[domain]
String optional
Returns:
Object
Opens a dataset.
Parameters:
-
path
String -
[mode=`"r"`]
String optionalThe mode to use to open the file:
"r"
or"r+"
Returns:
rename
-
new_name
-
old_name
Renames the dataset.
Parameters:
-
new_name
StringNew name for the dataset.
-
old_name
StringOld name of the dataset.