Ejemplo n.º 1
0
Archivo: layer.py Proyecto: 01-/django
 def num_fields(self):
     "Returns the number of fields in the Layer."
     return capi.get_field_count(self._ldefn)
Ejemplo n.º 2
0
    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."
=======
        "Return the geometry type (OGRGeomType) of the Layer."
>>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435
        return OGRGeomType(capi.get_fd_geom_type(self._ldefn))

    @property
    def srs(self):
<<<<<<< HEAD
        "Returns the Spatial Reference used in this Layer."
=======
Ejemplo n.º 3
0
 def num_fields(self):
     "Returns the number of fields in the Layer."
     return capi.get_field_count(self._ldefn)
Ejemplo n.º 4
0
from ctypes import byref, c_double