Example #1
0
 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) ]
Example #2
0
 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) ]
Example #3
0
 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)]
Example #4
0
File: layer.py Project: 01-/django
 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)]
Example #5
0
 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)
     ]
Example #6
0
 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)
     ]
Example #7
0
    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)]
Example #8
0
 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)
Example #9
0
 def name(self):
     "Returns the name of this Field."
     return capi.get_field_name(self.ptr)
Example #10
0
 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)
     ]
Example #11
0
 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)
Example #12
0
 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)]
Example #13
0
            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."
Example #14
0
 def name(self):
     "Returns the name of this Field."
     return get_field_name(self._ptr)
Example #15
0
from ctypes import byref, c_int
Example #16
0
from django.contrib.gis.gdal.base import GDALBase
Example #17
0
 def name(self):
     "Returns the name of this Field."
     return capi.get_field_name(self.ptr)
Example #18
0
 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)]
Example #19
0
        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)
        ]
Example #20
0
from ctypes import byref, c_double
Example #21
0
 def name(self):
     "Returns the name of this Field."
     return get_field_name(self._ptr)