Esempio n. 1
0
 def num_fields(self):
     "Return the number of fields in the Feature."
     return capi.get_feat_field_count(self.ptr)
Esempio n. 2
0
 def num_fields(self):
     "Return the number of fields in the Feature."
     return capi.get_feat_field_count(self.ptr)
Esempio n. 3
0
 def num_fields(self):
     "Returns the number of fields in the Feature."
     return get_feat_field_count(self._ptr)
Esempio n. 4
0
from django.contrib.gis.gdal.base import GDALBase
Esempio n. 5
0
 def num_fields(self):
     "Returns the number of fields in the Feature."
     return get_feat_field_count(self._ptr)
Esempio n. 6
0
<<<<<<< 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(