示例#1
0
 def __eq__(self, other):
     "Do equivalence testing on the features."
     return bool(capi.feature_equal(self.ptr, other._ptr))
示例#2
0
from django.contrib.gis.gdal.base import GDALBase
示例#3
0
 def __eq__(self, other):
     "Do equivalence testing on the features."
     return bool(capi.feature_equal(self.ptr, other._ptr))
示例#4
0
    def __len__(self):
        "Return the count of fields in this feature."
>>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435
        return self.num_fields

    def __str__(self):
        "The string name of the feature."
        return 'Feature FID %d in Layer<%s>' % (self.fid, self.layer_name)

    def __eq__(self, other):
<<<<<<< HEAD
        "Does equivalence testing on the features."
=======
        "Do equivalence testing on the features."
>>>>>>> 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)