def as_double(self):
     "Retrieve the Field's value as a double (float)."
     return (
         capi.get_field_as_double(self._feat.ptr, self._index)
         if self.is_set
         else None
     )
Exemple #2
0
 def as_double(self):
     "Retrieves the Field's value as a double (float)."
     return capi.get_field_as_double(self._feat.ptr, self._index)
Exemple #3
0
 def as_double(self):
     "Retrieve the Field's value as a double (float)."
     return capi.get_field_as_double(self._feat.ptr, self._index)
Exemple #4
0
 def as_double(self):
     "Retrieves the Field's value as a double (float)."
     return get_field_as_double(self._feat, self._index)
Exemple #5
0
            self.__class__ = OFTInteger
            self._double = True

    def __str__(self):
<<<<<<< HEAD
        "Returns the string representation of the Field."
=======
        "Return the string representation of the Field."
>>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435
        return str(self.value).strip()

    # #### Field Methods ####
    def as_double(self):
<<<<<<< HEAD
        "Retrieves the Field's value as a double (float)."
        return capi.get_field_as_double(self._feat.ptr, self._index)

    def as_int(self, is_64=False):
        "Retrieves the Field's value as an integer."
=======
        "Retrieve the Field's value as a double (float)."
        return capi.get_field_as_double(self._feat.ptr, self._index)

    def as_int(self, is_64=False):
        "Retrieve the Field's value as an integer."
>>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435
        if is_64:
            return capi.get_field_as_integer64(self._feat.ptr, self._index)
        else:
            return capi.get_field_as_integer(self._feat.ptr, self._index)
from ctypes import byref, c_int