class documentation

class DataSource(GDALBase):

View In Hierarchy

Wraps an OGR Data Source object.
Method __getitem__ Allows use of the index [] operator to get a layer at the index.
Method __init__ Undocumented
Method __len__ Return the number of layers within the data source.
Method __str__ Return OGR GetName and Driver for the Data Source.
Instance Variable ​_write Undocumented
Instance Variable driver Undocumented
Instance Variable encoding Undocumented
Instance Variable ptr Undocumented
Property layer​_count Return the number of layers in the data source.
Property name Return the name of the data source.

Inherited from CPointerBase (via GDALBase):

Method __del__ Free the memory used by the C++ object.
Method ptr.setter Undocumented
Class Variable destructor Undocumented
Instance Variable ​_ptr Undocumented
def __getitem__(self, index):
Allows use of the index [] operator to get a layer at the index.
def __init__(self, ds_input, ds_driver=False, write=False, encoding='utf-8'):

Undocumented

def __len__(self):
Return the number of layers within the data source.
def __str__(self):
Return OGR GetName and Driver for the Data Source.
_write: int =

Undocumented

driver =

Undocumented

encoding =

Undocumented

ptr =
@property
layer_count =
Return the number of layers in the data source.
@property
name =
Return the name of the data source.