RasterDriver
gma.driver.RasterDriver
class RasterDriver(name = "GTiff"):
Raster driver object. Create a raster driver object.
Optional:
name = str. Default 'GTiff'.
A raster driver name.
Methods
create
[method] .create(out_dst, bands, ysize, xsize, dtype = "Float32"):
Create a new Dataset with this driver.
Parameters:
out_dst: str.
Path of the dataset to create. None for memory.
xsize: int.
Width of created raster in pixels.
ysize: int.
Height of created raster in pixels.
bands: int.
Number of bands.
Optional:
dtype: int.str||RaterDataType||default='Float32'.
Raster data type. Set to `dtypes.DefinedRaterDataTypes` for raster datasets.
Returns:
Dataset.
open
[method] .open(in_src, sibling_files = []):
Open a raster file of this driver as a Dataset.
Parameters:
in_src: str.
name of the file to open
Optional:
sibling_files: list||default=None.
A list of filenames that are auxiliary to the main filename.
Returns:
Dataset.
set_creation_options
[method] .set_creation_options(**kwargs):
Set create options! For more, see ~.creation_options_info!
set_open_options
[method] .set_open_options(**kwargs):
Set open options! For more, see ~.open_options_info!
Property
category
Driver category. --> str
compress_modes
The compression methods supported by the raster driver. --> list
coordinate_epoch
Whether the raster driver supports georeferencing. --> bool
copyable
Whether the target drive supports copy. --> bool
creatable
Whether the target drive supports creation. --> bool
creation_dtypes
Supported data storage types. --> list
creation_options
Creation options. --> dict
creation_options_info
creation options. --> list
extension
Driver extension. --> str
extensions
Driver extensions. --> list
is_raster
Is a raster driver. --> bool
is_vector
Is a vector driver. --> bool
long_name
Driver long name. --> str
name
Driver name. --> str
open_options
Open options. --> dict
open_options_info
open options. --> list
sub_datasets
Whether the raster driver supports sub dataset. --> bool
transformable
Whether the raster driver supports transformable. --> bool
updatable
Whether the target driver can be modified/updated. --> bool
virtualio
Whether the raster driver supports virtual dataset. --> bool