Skip to main content

Driver

Wrap a GDAL/OGR Data Source Driver. For more information, see the C API documentation: https://gdal.org/api/vector_c_api.html https://gdal.org/api/raster_c_api.html

Constructor

Signature

def Driver(
dr_input: str | int | c_void_p
)

Parameters

NameTypeDescription
dr_input`strint

Methods


ensure_registered()

@classmethod
def ensure_registered() - > null

Attempt to register all the data source drivers.

Returns

TypeDescription
null

driver_count()

@classmethod
def driver_count() - > integer

Return the number of GDAL/OGR data source drivers registered.

Returns

TypeDescription
integerThe total count of currently registered GDAL/OGR data source drivers.

name()

@classmethod
def name() - > string

Return description/name string for this driver.

Returns

TypeDescription
stringThe internal GDAL/OGR description or name string identifying the driver.