Show:

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.

Methods

copyFiles
(
  • name_old
  • name_new
)

Copy the files of a dataset.

Parameters:

  • name_old String

    New name for the dataset.

  • name_new String

    Old 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 optional

    raster width in pixels (ignored for vector datasets)

  • [y_size=0] Integer optional

    raster height in pixels (ignored for vector datasets)

  • [band_count=0] Integer optional
  • [data_type=gdal.GDT_Byte] Integer optional

    pixel data type (ignored for vector datasets) (see data types)

  • [creation_options] String[] | Object optional

    An 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 optional

    An 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

open
(
  • path
  • mode=`"r"`
)
gdal.Dataset

Opens a dataset.

Parameters:

  • path String
  • [mode=`"r"`] String optional

    The mode to use to open the file: "r" or "r+"

Returns:

rename
(
  • new_name
  • old_name
)

Renames the dataset.

Parameters:

  • new_name String

    New name for the dataset.

  • old_name String

    Old name of the dataset.

Attributes

description

String readonly