Exemplo n.º 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) ]
Exemplo n.º 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)]
Exemplo n.º 3
0
 def name(self):
     "Returns the name of this Field."
     return capi.get_field_name(self.ptr)