Пример #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) ]
Пример #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) ]
Пример #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)]
Пример #4
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)]
Пример #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)
     ]
Пример #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)
     ]
Пример #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)]
Пример #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)
Пример #9
0
 def name(self):
     "Returns the name of this Field."
     return capi.get_field_name(self.ptr)
Пример #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)
     ]
Пример #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)
Пример #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)]
Пример #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."
Пример #14
0
 def name(self):
     "Returns the name of this Field."
     return get_field_name(self._ptr)
Пример #15
0
from ctypes import byref, c_int
Пример #16
0
from django.contrib.gis.gdal.base import GDALBase
Пример #17
0
 def name(self):
     "Returns the name of this Field."
     return capi.get_field_name(self.ptr)
Пример #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)]
Пример #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)
        ]
Пример #20
0
from ctypes import byref, c_double
Пример #21
0
 def name(self):
     "Returns the name of this Field."
     return get_field_name(self._ptr)