MCPcopy
hub / github.com/django/django / __init__

Method __init__

django/contrib/gis/gdal/feature.py:22–29  ·  view source on GitHub ↗

Initialize Feature from a pointer and its Layer object.

(self, feat, layer)

Source from the content-addressed store, hash-verified

20 destructor = capi.destroy_feature
21
22 def __init__(self, feat, layer):
23 """
24 Initialize Feature from a pointer and its Layer object.
25 """
26 if not feat:
27 raise GDALException("Cannot create OGR Feature, invalid pointer given.")
28 self.ptr = feat
29 self._layer = layer
30
31 def __getitem__(self, index):
32 """

Callers

nothing calls this directly

Calls 1

GDALExceptionClass · 0.90

Tested by

no test coverage detected