Example #1
0
File: layer.py Project: 01-/django
 def num_feat(self, force=1):
     "Returns the number of features in the Layer."
     return capi.get_feature_count(self.ptr, force)
Example #2
0
<<<<<<< HEAD
        "Returns the name of this layer in the Data Source."
=======
        "Return the name of this layer in the Data Source."
>>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435
        name = capi.get_fd_name(self._ldefn)
        return force_text(name, self._ds.encoding, strings_only=True)

    @property
    def num_feat(self, force=1):
<<<<<<< HEAD
        "Returns the number of features in the Layer."
=======
        "Return the number of features in the Layer."
>>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435
        return capi.get_feature_count(self.ptr, force)

    @property
    def num_fields(self):
<<<<<<< HEAD
        "Returns the number of fields in the Layer."
=======
        "Return the number of fields in the Layer."
>>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435
        return capi.get_field_count(self._ldefn)

    @property
    def geom_type(self):
<<<<<<< HEAD
        "Returns the geometry type (OGRGeomType) of the Layer."
=======
Example #3
0
 def num_feat(self, force=1):
     "Returns the number of features in the Layer."
     return capi.get_feature_count(self.ptr, force)
Example #4
0
from ctypes import byref, c_double