feature ******************************************feature 
Help on Feature in module osgeo.ogr object:

class Feature(__builtin__.object)
 |  Proxy of C++ Feature class
 |  
 |  Methods defined here:
 |  
 |  Clone(*args)
 |      Clone(self) -> Feature
 |      
 |      OGRFeatureH OGR_F_Clone(OGRFeatureH
 |      hFeat)
 |      
 |      Duplicate feature.
 |      
 |      The newly created feature is owned by the caller, and will have it's
 |      own reference to the OGRFeatureDefn.
 |      
 |      This function is the same as the C++ method OGRFeature::Clone().
 |      
 |      Parameters:
 |      -----------
 |      
 |      hFeat:  handle to the feature to clone.
 |      
 |      an handle to the new feature, exactly matching this feature.
 |  
 |  Dereference(self)
 |  
 |  Destroy(self)
 |      Once called, self has effectively been destroyed.  Do not access. For backwards compatiblity only
 |  
 |  DumpReadable(*args)
 |      DumpReadable(self)
 |      
 |      void
 |      OGR_F_DumpReadable(OGRFeatureH hFeat, FILE *fpOut)
 |      
 |      Dump this feature in a human readable form.
 |      
 |      This dumps the attributes, and geometry; however, it doesn't
 |      definition information (other than field types and names), nor does it
 |      report the geometry spatial reference system.
 |      
 |      This function is the same as the C++ method
 |      OGRFeature::DumpReadable().
 |      
 |      Parameters:
 |      -----------
 |      
 |      hFeat:  handle to the feature to dump.
 |      
 |      fpOut:  the stream to write to, such as strout.
 |  
 |  Equal(*args)
 |      Equal(self, Feature feature) -> bool
 |      
 |      int OGR_F_Equal(OGRFeatureH hFeat,
 |      OGRFeatureH hOtherFeat)
 |      
 |      Test if two features are the same.
 |      
 |      Two features are considered equal if the share them (handle equality)
 |      same OGRFeatureDefn, have the same field values, and the same geometry
 |      (as tested by OGR_G_Equal()) as well as the same feature id.
 |      
 |      This function is the same as the C++ method OGRFeature::Equal().
 |      
 |      Parameters:
 |      -----------
 |      
 |      hFeat:  handle to one of the feature.
 |      
 |      hOtherFeat:  handle to the other feature to test this one against.
 |      
 |      TRUE if they are equal, otherwise FALSE.
 |  
 |  ExportToJson(self, as_object=False)
 |      Exports a GeoJSON object which represents the Feature. The
 |      as_object parameter determines whether the returned value 
 |      should be a Python object instead of a string. Defaults to False.
 |  
 |  GetDefnRef(*args)
 |      GetDefnRef(self) -> FeatureDefn
 |      
 |      OGRFeatureDefnH
 |      OGR_F_GetDefnRef(OGRFeatureH hFeat)
 |      
 |      Fetch feature definition.
 |      
 |      This function is the same as the C++ method OGRFeature::GetDefnRef().
 |      
 |      Parameters:
 |      -----------
 |      
 |      hFeat:  handle to the feature to get the feature definition from.
 |      
 |      an handle to the feature definition object on which feature depends.
 |  
 |  GetFID(*args)
 |      GetFID(self) -> int
 |      
 |      long OGR_F_GetFID(OGRFeatureH hFeat)
 |      
 |      Get feature identifier.
 |      
 |      This function is the same as the C++ method OGRFeature::GetFID().
 |      
 |      Parameters:
 |      -----------
 |      
 |      hFeat:  handle to the feature from which to get the feature
 |      identifier.
 |      
 |      feature id or OGRNullFID if none has been assigned.
 |  
 |  GetField(self, fld_index)
 |  
 |  GetFieldAsDateTime(*args)
 |      GetFieldAsDateTime(self, int id, int pnYear, int pnMonth, int pnDay, int pnHour, 
 |          int pnMinute, int pnSecond, int pnTZFlag)
 |      
 |      int
 |      OGR_F_GetFieldAsDateTime(OGRFeatureH hFeat, int iField, int *pnYear,
 |      int *pnMonth, int *pnDay, int *pnHour, int *pnMinute, int *pnSecond,
 |      int *pnTZFlag)
 |      
 |      Fetch field value as date and time.
 |      
 |      Currently this method only works for OFTDate, OFTTime and OFTDateTime
 |      fields.
 |      
 |      This function is the same as the C++ method
 |      OGRFeature::GetFieldAsDateTime().
 |      
 |      Parameters:
 |      -----------
 |      
 |      hFeat:  handle to the feature that owned the field.
 |      
 |      iField:  the field to fetch, from 0 to GetFieldCount()-1.
 |      
 |      int:  pnYear (including century)
 |      
 |      int:  pnMonth (1-12)
 |      
 |      int:  pnDay (1-31)
 |      
 |      int:  pnHour (0-23)
 |      
 |      int:  pnMinute (0-59)
 |      
 |      int:  pnSecond (0-59)
 |      
 |      int:  pnTZFlag (0=unknown, 1=localtime, 100=GMT, see data model for
 |      details)
 |      
 |      TRUE on success or FALSE on failure.
 |  
 |  GetFieldAsDouble(*args)
 |      GetFieldAsDouble(self, int id) -> double
 |      GetFieldAsDouble(self, char name) -> double
 |      
 |      double
 |      OGR_F_GetFieldAsDouble(OGRFeatureH hFeat, int iField)
 |      
 |      Fetch field value as a double.
 |      
 |      OFTString features will be translated using atof(). OFTInteger fields
 |      will be cast to double. Other field types, or errors will result in a
 |      return value of zero.
 |      
 |      This function is the same as the C++ method
 |      OGRFeature::GetFieldAsDouble().
 |      
 |      Parameters:
 |      -----------
 |      
 |      hFeat:  handle to the feature that owned the field.
 |      
 |      iField:  the field to fetch, from 0 to GetFieldCount()-1.
 |      
 |      the field value.
 |  
 |  GetFieldAsDoubleList(*args)
 |      GetFieldAsDoubleList(self, int id, int nLen, double pList)
 |      
 |      const double*
 |      OGR_F_GetFieldAsDoubleList(OGRFeatureH hFeat, int iField, int
 |      *pnCount)
 |      
 |      Fetch field value as a list of doubles.
 |      
 |      Currently this function only works for OFTRealList fields.
 |      
 |      This function is the same as the C++ method
 |      OGRFeature::GetFieldAsDoubleList().
 |      
 |      Parameters:
 |      -----------
 |      
 |      hFeat:  handle to the feature that owned the field.
 |      
 |      iField:  the field to fetch, from 0 to GetFieldCount()-1.
 |      
 |      pnCount:  an integer to put the list count (number of doubles) into.
 |      
 |      the field value. This list is internal, and should not be modified, or
 |      freed. It's lifetime may be very brief. If *pnCount is zero on return
 |      the returned pointer may be NULL or non-NULL.
 |  
 |  GetFieldAsInteger(*args)
 |      GetFieldAsInteger(self, int id) -> int
 |      GetFieldAsInteger(self, char name) -> int
 |      
 |      int
 |      OGR_F_GetFieldAsInteger(OGRFeatureH hFeat, int iField)
 |      
 |      Fetch field value as integer.
 |      
 |      OFTString features will be translated using atoi(). OFTReal fields
 |      will be cast to integer. Other field types, or errors will result in a
 |      return value of zero.
 |      
 |      This function is the same as the C++ method
 |      OGRFeature::GetFieldAsInteger().
 |      
 |      Parameters:
 |      -----------
 |      
 |      hFeat:  handle to the feature that owned the field.
 |      
 |      iField:  the field to fetch, from 0 to GetFieldCount()-1.
 |      
 |      the field value.
 |  
 |  GetFieldAsIntegerList(*args)
 |      GetFieldAsIntegerList(self, int id, int nLen, int pList)
 |      
 |      const int*
 |      OGR_F_GetFieldAsIntegerList(OGRFeatureH hFeat, int iField, int
 |      *pnCount)
 |      
 |      Fetch field value as a list of integers.
 |      
 |      Currently this function only works for OFTIntegerList fields.
 |      
 |      This function is the same as the C++ method
 |      OGRFeature::GetFieldAsIntegerList().
 |      
 |      Parameters:
 |      -----------
 |      
 |      hFeat:  handle to the feature that owned the field.
 |      
 |      iField:  the field to fetch, from 0 to GetFieldCount()-1.
 |      
 |      pnCount:  an integer to put the list count (number of integers) into.
 |      
 |      the field value. This list is internal, and should not be modified, or
 |      freed. It's lifetime may be very brief. If *pnCount is zero on return
 |      the returned pointer may be NULL or non-NULL.
 |  
 |  GetFieldAsString(*args)
 |      GetFieldAsString(self, int id) -> char
 |      GetFieldAsString(self, char name) -> char
 |      
 |      const char*
 |      OGR_F_GetFieldAsString(OGRFeatureH hFeat, int iField)
 |      
 |      Fetch field value as a string.
 |      
 |      OFTReal and OFTInteger fields will be translated to string using
 |      sprintf(), but not necessarily using the established formatting rules.
 |      Other field types, or errors will result in a return value of zero.
 |      
 |      This function is the same as the C++ method
 |      OGRFeature::GetFieldAsString().
 |      
 |      Parameters:
 |      -----------
 |      
 |      hFeat:  handle to the feature that owned the field.
 |      
 |      iField:  the field to fetch, from 0 to GetFieldCount()-1.
 |      
 |      the field value. This string is internal, and should not be modified,
 |      or freed. It's lifetime may be very brief.
 |  
 |  GetFieldAsStringList(*args)
 |      GetFieldAsStringList(self, int id, char pList)
 |      
 |      char**
 |      OGR_F_GetFieldAsStringList(OGRFeatureH hFeat, int iField)
 |      
 |      Fetch field value as a list of strings.
 |      
 |      Currently this method only works for OFTStringList fields.
 |      
 |      This function is the same as the C++ method
 |      OGRFeature::GetFieldAsStringList().
 |      
 |      Parameters:
 |      -----------
 |      
 |      hFeat:  handle to the feature that owned the field.
 |      
 |      iField:  the field to fetch, from 0 to GetFieldCount()-1.
 |      
 |      the field value. This list is internal, and should not be modified, or
 |      freed. It's lifetime may be very brief.
 |  
 |  GetFieldCount(*args)
 |      GetFieldCount(self) -> int
 |      
 |      int
 |      OGR_F_GetFieldCount(OGRFeatureH hFeat)
 |      
 |      Fetch number of fields on this feature. This will always be the same
 |      as the field count for the OGRFeatureDefn.
 |      
 |      This function is the same as the C++ method
 |      OGRFeature::GetFieldCount().
 |      
 |      Parameters:
 |      -----------
 |      
 |      hFeat:  handle to the feature to get the fields count from.
 |      
 |      count of fields.
 |  
 |  GetFieldDefnRef(*args)
 |      GetFieldDefnRef(self, int id) -> FieldDefn
 |      GetFieldDefnRef(self, char name) -> FieldDefn
 |      
 |      OGRFieldDefnH
 |      OGR_F_GetFieldDefnRef(OGRFeatureH hFeat, int i)
 |      
 |      Fetch definition for this field.
 |      
 |      This function is the same as the C++ method
 |      OGRFeature::GetFieldDefnRef().
 |      
 |      Parameters:
 |      -----------
 |      
 |      hFeat:  handle to the feature on which the field is found.
 |      
 |      i:  the field to fetch, from 0 to GetFieldCount()-1.
 |      
 |      an handle to the field definition (from the OGRFeatureDefn). This is
 |      an internal reference, and should not be deleted or modified.
 |  
 |  GetFieldIndex(*args)
 |      GetFieldIndex(self, char name) -> int
 |      
 |      int
 |      OGR_F_GetFieldIndex(OGRFeatureH hFeat, const char *pszName)
 |      
 |      Fetch the field index given field name.
 |      
 |      This is a cover for the OGRFeatureDefn::GetFieldIndex() method.
 |      
 |      This function is the same as the C++ method
 |      OGRFeature::GetFieldIndex().
 |      
 |      Parameters:
 |      -----------
 |      
 |      hFeat:  handle to the feature on which the field is found.
 |      
 |      pszName:  the name of the field to search for.
 |      
 |      the field index, or -1 if no matching field is found.
 |  
 |  GetFieldType(*args)
 |      GetFieldType(self, int id) -> OGRFieldType
 |      GetFieldType(self, char name) -> OGRFieldType
 |  
 |  GetGeometryRef(*args)
 |      GetGeometryRef(self) -> Geometry
 |      
 |      OGRGeometryH
 |      OGR_F_GetGeometryRef(OGRFeatureH hFeat)
 |      
 |      Fetch an handle to feature geometry.
 |      
 |      This function is the same as the C++ method
 |      OGRFeature::GetGeometryRef().
 |      
 |      Parameters:
 |      -----------
 |      
 |      hFeat:  handle to the feature to get geometry from.
 |      
 |      an handle to internal feature geometry. This object should not be
 |      modified.
 |  
 |  GetStyleString(*args)
 |      GetStyleString(self) -> char
 |      
 |      const char*
 |      OGR_F_GetStyleString(OGRFeatureH hFeat)
 |      
 |      Fetch style string for this feature.
 |      
 |      Set the OGR Feature Style Specification for details on the format of
 |      this string, and ogr_featurestyle.h for services available to parse
 |      it.
 |      
 |      This function is the same as the C++ method
 |      OGRFeature::GetStyleString().
 |      
 |      Parameters:
 |      -----------
 |      
 |      hFeat:  handle to the feature to get the style from.
 |      
 |      a reference to a representation in string format, or NULL if there
 |      isn't one.
 |  
 |  IsFieldSet(*args)
 |      IsFieldSet(self, int id) -> bool
 |      IsFieldSet(self, char name) -> bool
 |      
 |      int OGR_F_IsFieldSet(OGRFeatureH
 |      hFeat, int iField)
 |      
 |      Test if a field has ever been assigned a value or not.
 |      
 |      This function is the same as the C++ method OGRFeature::IsFieldSet().
 |      
 |      Parameters:
 |      -----------
 |      
 |      hFeat:  handle to the feature on which the field is.
 |      
 |      iField:  the field to test.
 |      
 |      TRUE if the field has been set, otherwise false.
 |  
 |  Reference(self)
 |  
 |  SetFID(*args)
 |      SetFID(self, int fid) -> OGRErr
 |      
 |      OGRErr OGR_F_SetFID(OGRFeatureH hFeat,
 |      long nFID)
 |      
 |      Set the feature identifier.
 |      
 |      For specific types of features this operation may fail on illegal
 |      features ids. Generally it always succeeds. Feature ids should be
 |      greater than or equal to zero, with the exception of OGRNullFID (-1)
 |      indicating that the feature id is unknown.
 |      
 |      This function is the same as the C++ method OGRFeature::SetFID().
 |      
 |      Parameters:
 |      -----------
 |      
 |      hFeat:  handle to the feature to set the feature id to.
 |      
 |      nFID:  the new feature identifier value to assign.
 |      
 |      On success OGRERR_NONE, or on failure some other value.
 |  
 |  SetField(*args)
 |      SetField(self, int id, char value)
 |      SetField(self, char name, char value)
 |      SetField(self, int id, int value)
 |      SetField(self, char name, int value)
 |      SetField(self, int id, double value)
 |      SetField(self, char name, double value)
 |      SetField(self, int id, int year, int month, int day, int hour, int minute, 
 |          int second, int tzflag)
 |      SetField(self, char name, int year, int month, int day, int hour, 
 |          int minute, int second, int tzflag)
 |  
 |  SetFieldDoubleList(*args)
 |      SetFieldDoubleList(self, int id, int nList)
 |      
 |      void
 |      OGR_F_SetFieldDoubleList(OGRFeatureH hFeat, int iField, int nCount,
 |      double *padfValues)
 |      
 |      Set field to list of doubles value.
 |      
 |      This function currently on has an effect of OFTRealList fields.
 |      
 |      This function is the same as the C++ method OGRFeature::SetField().
 |      
 |      Parameters:
 |      -----------
 |      
 |      hFeat:  handle to the feature that owned the field.
 |      
 |      iField:  the field to set, from 0 to GetFieldCount()-1.
 |      
 |      nCount:  the number of values in the list being assigned.
 |      
 |      padfValues:  the values to assign.
 |  
 |  SetFieldIntegerList(*args)
 |      SetFieldIntegerList(self, int id, int nList)
 |      
 |      void
 |      OGR_F_SetFieldIntegerList(OGRFeatureH hFeat, int iField, int nCount,
 |      int *panValues)
 |      
 |      Set field to list of integers value.
 |      
 |      This function currently on has an effect of OFTIntegerList fields.
 |      
 |      This function is the same as the C++ method OGRFeature::SetField().
 |      
 |      Parameters:
 |      -----------
 |      
 |      hFeat:  handle to the feature that owned the field.
 |      
 |      iField:  the field to set, from 0 to GetFieldCount()-1.
 |      
 |      nCount:  the number of values in the list being assigned.
 |      
 |      panValues:  the values to assign.
 |  
 |  SetFieldStringList(*args)
 |      SetFieldStringList(self, int id, char pList)
 |      
 |      void
 |      OGR_F_SetFieldStringList(OGRFeatureH hFeat, int iField, char
 |      **papszValues)
 |      
 |      Set field to list of strings value.
 |      
 |      This function currently on has an effect of OFTStringList fields.
 |      
 |      This function is the same as the C++ method OGRFeature::SetField().
 |      
 |      Parameters:
 |      -----------
 |      
 |      hFeat:  handle to the feature that owned the field.
 |      
 |      iField:  the field to set, from 0 to GetFieldCount()-1.
 |      
 |      papszValues:  the values to assign.
 |  
 |  SetFrom(*args, **kwargs)
 |      SetFrom(self, Feature other, int forgiving=1) -> OGRErr
 |      
 |      OGRErr OGR_F_SetFrom(OGRFeatureH
 |      hFeat, OGRFeatureH hOtherFeat, int bForgiving)
 |      
 |      Set one feature from another.
 |      
 |      Overwrite the contents of this feature from the geometry and
 |      attributes of another. The hOtherFeature does not need to have the
 |      same OGRFeatureDefn. Field values are copied by corresponding field
 |      names. Field types do not have to exactly match. OGR_F_SetField*()
 |      function conversion rules will be applied as needed.
 |      
 |      This function is the same as the C++ method OGRFeature::SetFrom().
 |      
 |      Parameters:
 |      -----------
 |      
 |      hFeat:  handle to the feature to set to.
 |      
 |      hOtherFeat:  handle to the feature from which geometry, and field
 |      values will be copied.
 |      
 |      bForgiving:  TRUE if the operation should continue despite lacking
 |      output fields matching some of the source fields.
 |      
 |      OGRERR_NONE if the operation succeeds, even if some values are not
 |      transferred, otherwise an error code.
 |  
 |  SetGeometry(*args)
 |      SetGeometry(self, Geometry geom) -> OGRErr
 |      
 |      OGRErr
 |      OGR_F_SetGeometry(OGRFeatureH hFeat, OGRGeometryH hGeom)
 |      
 |      Set feature geometry.
 |      
 |      This function updates the features geometry, and operate exactly as
 |      SetGeometryDirectly(), except that this function does not assume
 |      ownership of the passed geometry, but instead makes a copy of it.
 |      
 |      This function is the same as the C++ OGRFeature::SetGeometry().
 |      
 |      Parameters:
 |      -----------
 |      
 |      hFeat:  handle to the feature on which new geometry is applied to.
 |      
 |      hGeom:  handle to the new geometry to apply to feature.
 |      
 |      OGRERR_NONE if successful, or OGR_UNSUPPORTED_GEOMETRY_TYPE if the
 |      geometry type is illegal for the OGRFeatureDefn (checking not yet
 |      implemented).
 |  
 |  SetGeometryDirectly(*args)
 |      SetGeometryDirectly(self, Geometry geom) -> OGRErr
 |      
 |      OGRErr
 |      OGR_F_SetGeometryDirectly(OGRFeatureH hFeat, OGRGeometryH hGeom)
 |      
 |      Set feature geometry.
 |      
 |      This function updates the features geometry, and operate exactly as
 |      SetGeometry(), except that this function assumes ownership of the
 |      passed geometry.
 |      
 |      This function is the same as the C++ method
 |      OGRFeature::SetGeometryDirectly.
 |      
 |      Parameters:
 |      -----------
 |      
 |      hFeat:  handle to the feature on which to apply the geometry.
 |      
 |      hGeom:  handle to the new geometry to apply to feature.
 |      
 |      OGRERR_NONE if successful, or OGR_UNSUPPORTED_GEOMETRY_TYPE if the
 |      geometry type is illegal for the OGRFeatureDefn (checking not yet
 |      implemented).
 |  
 |  SetStyleString(*args)
 |      SetStyleString(self, char the_string)
 |      
 |      void
 |      OGR_F_SetStyleString(OGRFeatureH hFeat, const char *pszStyle)
 |      
 |      Set feature style string. This method operate exactly as
 |      OGR_F_SetStyleStringDirectly() except that it does not assume
 |      ownership of the passed string, but instead makes a copy of it.
 |      
 |      This function is the same as the C++ method
 |      OGRFeature::SetStyleString().
 |      
 |      Parameters:
 |      -----------
 |      
 |      hFeat:  handle to the feature to set style to.
 |      
 |      pszStyle:  the style string to apply to this feature, cannot be NULL.
 |  
 |  UnsetField(*args)
 |      UnsetField(self, int id)
 |      UnsetField(self, char name)
 |      
 |      void OGR_F_UnsetField(OGRFeatureH
 |      hFeat, int iField)
 |      
 |      Clear a field, marking it as unset.
 |      
 |      This function is the same as the C++ method OGRFeature::UnsetField().
 |      
 |      Parameters:
 |      -----------
 |      
 |      hFeat:  handle to the feature on which the field is.
 |      
 |      iField:  the field to unset.
 |  
 |  __cmp__(self, other)
 |      Compares a feature to another for equality
 |  
 |  __copy__(self)
 |  
 |  __del__ lambda self
 |  
 |  __getattr__(self, name)
 |      Returns the values of fields by the given name
 |  
 |  __init__(self, *args, **kwargs)
 |      __init__(self, FeatureDefn feature_def=0) -> Feature
 |  
 |  __repr__ = _swig_repr(self)
 |  
 |  __setattr__ lambda self, name, value
 |  
 |  geometry(self)
 |  
 |  items(self)
 |  
 |  keys(self)
 |  
 |  ----------------------------------------------------------------------
 |  Data descriptors defined here:
 |  
 |  __dict__
 |      dictionary for instance variables (if defined)
 |  
 |  __weakref__
 |      list of weak references to the object (if defined)
 |  
 |  ----------------------------------------------------------------------
 |  Data and other attributes defined here:
 |  
 |  __swig_destroy__ = 
 |  
 |  
 |  __swig_getmethods__ = {}
 |  
 |  __swig_setmethods__ = {}

feature ******************************************feature