class documentation

class DataSource(GDALBase): (source)

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 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.
Instance Variable _write Undocumented

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): (source)

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'): (source)

Undocumented

def __len__(self): (source)

Return the number of layers within the data source.

def __str__(self): (source)

Return OGR GetName and Driver for the Data Source.

Undocumented

encoding = (source)

Undocumented

@property
layer_count = (source)

Return the number of layers in the data source.

Return the name of the data source.

Undocumented