def fields(self): """ Returns a list of string names corresponding to each of the Fields available in this Layer. """ return [capi.get_field_name(capi.get_field_defn(self._ldefn, i)) for i in xrange(self.num_fields) ]
def fields(self): """ Returns a list of string names corresponding to each of the Fields available in this Layer. """ return [get_field_name(get_field_defn(self._ldefn, i)) for i in xrange(self.num_fields) ]
def fields(self): """ Returns a list of string names corresponding to each of the Fields available in this Layer. """ return [force_text(capi.get_field_name(capi.get_field_defn(self._ldefn, i)), self._ds.encoding, strings_only=True) for i in range(self.num_fields)]
def fields(self): "Return a list of fields in the Feature." return [ force_text(capi.get_field_name( capi.get_field_defn(self._layer._ldefn, i)), self.encoding, strings_only=True) for i in range(self.num_fields) ]
def fields(self): "Return a list of fields in the Feature." return [ force_text( capi.get_field_name(capi.get_field_defn(self._layer._ldefn, i)), self.encoding, strings_only=True ) for i in range(self.num_fields) ]
def fields(self): """ <<<<<<< HEAD Returns a list of string names corresponding to each of the Fields ======= Return a list of string names corresponding to each of the Fields >>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435 available in this Layer. """ return [force_text(capi.get_field_name(capi.get_field_defn(self._ldefn, i)), self._ds.encoding, strings_only=True) for i in range(self.num_fields)]
def name(self): "Returns the name of this Field." name = capi.get_field_name(self.ptr) return force_text(name, encoding=self._feat.encoding, strings_only=True)
def name(self): "Returns the name of this Field." return capi.get_field_name(self.ptr)
def fields(self): "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) ]
def name(self): "Return the name of this Field." name = capi.get_field_name(self.ptr) return force_text(name, encoding=self._feat.encoding, strings_only=True)
def fields(self): "Returns a list of fields in the Feature." return [capi.get_field_name(capi.get_field_defn(self._layer._ldefn, i)) for i in xrange(self.num_fields)]
self._feat.ptr, self._index, byref(yy), byref(mm), byref(dd), byref(hh), byref(mn), byref(ss), byref(tz)) if status: return (yy, mm, dd, hh, mn, ss, tz) else: raise GDALException('Unable to retrieve date & time information from the field.') # #### Field Properties #### @property def name(self): <<<<<<< HEAD "Returns the name of this Field." ======= "Return the name of this Field." >>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435 name = capi.get_field_name(self.ptr) return force_text(name, encoding=self._feat.encoding, strings_only=True) @property def precision(self): <<<<<<< HEAD "Returns the precision of this Field." ======= "Return the precision of this Field." >>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435 return capi.get_field_precision(self.ptr) @property def type(self): <<<<<<< HEAD "Returns the OGR type of this Field."
def name(self): "Returns the name of this Field." return get_field_name(self._ptr)
from ctypes import byref, c_int
from django.contrib.gis.gdal.base import GDALBase
def fields(self): "Returns a list of fields in the Feature." return [get_field_name(get_field_defn(self._fdefn, i)) for i in xrange(self.num_fields)]
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( capi.get_field_name(capi.get_field_defn(self._layer._ldefn, i)), self.encoding, strings_only=True ) for i in range(self.num_fields) ]
from ctypes import byref, c_double