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

Method fields

django/contrib/gis/gdal/layer.py:136–148  ·  view source on GitHub ↗

Return a list of string names corresponding to each of the Fields available in this Layer.

(self)

Source from the content-addressed store, hash-verified

134
135 @property
136 def fields(self):
137 """
138 Return a list of string names corresponding to each of the Fields
139 available in this Layer.
140 """
141 return [
142 force_str(
143 capi.get_field_name(capi.get_field_defn(self._ldefn, i)),
144 self._ds.encoding,
145 strings_only=True,
146 )
147 for i in range(self.num_fields)
148 ]
149
150 @property
151 def field_types(self):

Callers

nothing calls this directly

Calls 1

force_strFunction · 0.90

Tested by

no test coverage detected