def num_fields(self): "Returns the number of fields in the Layer." return capi.get_field_count(self._ldefn)
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." =======
def num_fields(self): "Returns the number of fields in the Layer." return capi.get_field_count(self._ldefn)
from ctypes import byref, c_double