def num_fields(self): "Return the number of fields in the Feature." return capi.get_feat_field_count(self.ptr)
def num_fields(self): "Return the number of fields in the Feature." return capi.get_feat_field_count(self.ptr)
def num_fields(self): "Returns the number of fields in the Feature." return get_feat_field_count(self._ptr)
from django.contrib.gis.gdal.base import GDALBase
def num_fields(self): "Returns the number of fields in the Feature." return get_feat_field_count(self._ptr)
<<<<<<< HEAD "Returns the name of the layer for the feature." ======= "Return the name of the layer for the feature." >>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435 name = capi.get_feat_name(self._layer._ldefn) return force_text(name, self.encoding, strings_only=True) @property def num_fields(self): <<<<<<< HEAD "Returns the number of fields in the Feature." ======= "Return the number of fields in the Feature." >>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435 return capi.get_feat_field_count(self.ptr) @property def fields(self): <<<<<<< HEAD "Returns a list of fields in the Feature." return [capi.get_field_name(capi.get_field_defn(self._layer._ldefn, i)) for i in range(self.num_fields)] @property def geom(self): "Returns the OGR Geometry for this Feature." ======= "Return a list of fields in the Feature." return [ force_text(