def layer_name(self): "Return the name of the layer for the feature." name = capi.get_feat_name(self._layer._ldefn) return force_text(name, self.encoding, strings_only=True)
def layer_name(self): "Returns the name of the layer for the feature." return capi.get_feat_name(self._fdefn)
from django.contrib.gis.gdal.base import GDALBase
def fid(self): <<<<<<< HEAD "Returns the feature identifier." ======= "Return the feature identifier." >>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435 return capi.get_fid(self.ptr) @property def layer_name(self): <<<<<<< 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."