MCPcopy
hub / github.com/django/django / get_layer

Method get_layer

tests/gis_tests/gdal_tests/test_ds.py:236–241  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

234
235 # See ticket #9448.
236 def get_layer():
237 # This DataSource object is not accessible outside this
238 # scope. However, a reference should still be kept alive
239 # on the `Layer` returned.
240 ds = DataSource(source.ds)
241 return ds[0]
242
243 # Making sure we can call OGR routines on the Layer returned.
244 lyr = get_layer()

Callers 1

__getitem__Method · 0.80

Calls 1

DataSourceClass · 0.90

Tested by

no test coverage detected