MCPcopy
hub / github.com/django/django / fields

Method fields

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

Return a list of fields in the Feature.

(self)

Source from the content-addressed store, hash-verified

80
81 @property
82 def fields(self):
83 "Return a list of fields in the Feature."
84 return [
85 force_str(
86 capi.get_field_name(capi.get_field_defn(self._layer._ldefn, i)),
87 self.encoding,
88 strings_only=True,
89 )
90 for i in range(self.num_fields)
91 ]
92
93 @property
94 def geom(self):

Callers

nothing calls this directly

Calls 1

force_strFunction · 0.90

Tested by

no test coverage detected