コード例 #1
0
ファイル: layer.py プロジェクト: timothyclemans/djangocg
 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) ]
コード例 #2
0
ファイル: feature.py プロジェクト: timothyclemans/djangocg
 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)]
コード例 #3
0
ファイル: field.py プロジェクト: timothyclemans/djangocg
 def name(self):
     "Returns the name of this Field."
     return capi.get_field_name(self.ptr)