MCPcopy
hub / github.com/django/django / get_fields

Method get_fields

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

Return a list containing the given field name for every Feature in the Layer.

(self, field_name)

Source from the content-addressed store, hash-verified

203
204 # #### Layer Methods ####
205 def get_fields(self, field_name):
206 """
207 Return a list containing the given field name for every Feature
208 in the Layer.
209 """
210 if field_name not in self.fields:
211 raise GDALException("invalid field name: %s" % field_name)
212 return [feat.get(field_name) for feat in self]
213
214 def get_geoms(self, geos=False):
215 """

Callers 3

add_srs_entryFunction · 0.45
_handle_objectMethod · 0.45
_handle_objectMethod · 0.45

Calls 2

GDALExceptionClass · 0.90
getMethod · 0.45

Tested by

no test coverage detected