示例#1
0
 def fid(self):
     "Return the feature identifier."
     return capi.get_fid(self.ptr)
示例#2
0
 def fid(self):
     "Return the feature identifier."
     return capi.get_fid(self.ptr)
示例#3
0
 def fid(self):
     "Returns the feature identifier."
     return get_fid(self._ptr)
示例#4
0
from django.contrib.gis.gdal.base import GDALBase
示例#5
0
 def fid(self):
     "Returns the feature identifier."
     return get_fid(self._ptr)
示例#6
0
>>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435
        return bool(capi.feature_equal(self.ptr, other._ptr))

    # #### Feature Properties ####
    @property
    def encoding(self):
        return self._layer._ds.encoding

    @property
    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."