Exemple #1
0
 def fields(self):
     """
     Returns a list of string names corresponding to each of the Fields
     available in this Layer.
     """
     return [capi.get_field_name(capi.get_field_defn(self._ldefn, i))
             for i in xrange(self.num_fields) ]
Exemple #2
0
 def fields(self):
     "Returns a list of fields in the Feature."
     return [capi.get_field_name(capi.get_field_defn(self._fdefn, i))
             for i in xrange(self.num_fields)]
Exemple #3
0
 def name(self):
     "Returns the name of this Field."
     return capi.get_field_name(self.ptr)