def name(self): "Returns the name of this layer in the Data Source." name = capi.get_fd_name(self._ldefn) return force_text(name, self._ds.encoding, strings_only=True)
def name(self): "Returns the name of this layer in the Data Source." return capi.get_fd_name(self._ldefn)
def name(self): "Returns the name of this layer in the Data Source." return get_fd_name(self._ldefn)
"Returns the extent (an Envelope) of this layer." ======= "Return the extent (an Envelope) of this layer." >>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435 env = OGREnvelope() capi.get_extent(self.ptr, byref(env), 1) return Envelope(env) @property def name(self): <<<<<<< 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."
from ctypes import byref, c_double