GDAL docstring tweaks.
This commit is contained in:
parent
ec1aad1671
commit
08eb54ae71
|
@ -24,8 +24,7 @@ class Feature(GDALBase):
|
||||||
#### Python 'magic' routines ####
|
#### Python 'magic' routines ####
|
||||||
def __init__(self, feat, layer):
|
def __init__(self, feat, layer):
|
||||||
"""
|
"""
|
||||||
Initializes on the feature pointers for the feature and the layer
|
Initializes Feature from a pointer and its Layer object.
|
||||||
definition, as well as the Layer.
|
|
||||||
"""
|
"""
|
||||||
if not feat:
|
if not feat:
|
||||||
raise OGRException('Cannot create OGR Feature, invalid pointer given.')
|
raise OGRException('Cannot create OGR Feature, invalid pointer given.')
|
||||||
|
|
|
@ -126,8 +126,7 @@ class DataSourceTest(unittest.TestCase):
|
||||||
|
|
||||||
def test03c_layer_references(self):
|
def test03c_layer_references(self):
|
||||||
"""
|
"""
|
||||||
Test to make sure Layer/Feature access is still available without
|
Ensure OGR objects keep references to the objects they belong to.
|
||||||
the DataSource/Feature.
|
|
||||||
"""
|
"""
|
||||||
source = ds_list[0]
|
source = ds_list[0]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue