Return a list containing the given field name for every Feature in the Layer.
(self, field_name)
| 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 | """ |
no test coverage detected