'Initialize on the feature object and the integer index of
the field within the feature.'

def __init__(self, feat, index):

    self._feat = feat
    self._index = index
    fld_ptr = capi.get_feat_field_defn(feat.ptr, index)
    if (not fld_ptr):
        raise GDALException('Cannot    create    OGR    Field,    invalid    pointer    given.')
    self.ptr = fld_ptr
    self.__class__ = OGRFieldTypes[self.type]
    if (isinstance(self, OFTReal) and (self.precision == 0)):
        self.__class__ = OFTInteger
        self._double = True
