class documentation
This class that wraps an OGR Feature, needs to be instantiated from a Layer object.
Method | __eq__ |
Do equivalence testing on the features. |
Method | __getitem__ |
Get the Field object at the specified index, which may be either an integer or the Field's string label. Note that the Field object is not the field's _value_ -- use the `get` method instead to retrieve the value (e... |
Method | __init__ |
Initialize Feature from a pointer and its Layer object. |
Method | __len__ |
Return the count of fields in this feature. |
Method | __str__ |
The string name of the feature. |
Method | get |
Return the value of the field, instead of an instance of the Field object. May take a string of the field name or a Field object as parameters. |
Method | index |
Return the index of the given field name. |
Instance Variable | ptr |
Undocumented |
Property | encoding |
Undocumented |
Property | fid |
Return the feature identifier. |
Property | fields |
Return a list of fields in the Feature. |
Property | geom |
Return the OGR Geometry for this Feature. |
Property | geom |
Return the OGR Geometry Type for this Feature. |
Property | layer |
Return the name of the layer for the feature. |
Property | num |
Return the number of fields in the Feature. |
Instance Variable | _layer |
Undocumented |
Inherited from CPointerBase
(via GDALBase
):
Method | __del__ |
Free the memory used by the C++ object. |
Method | ptr |
Undocumented |
Class Variable | destructor |
Undocumented |
Instance Variable | _ptr |
Undocumented |
Get the Field object at the specified index, which may be either an integer or the Field's string label. Note that the Field object is not the field's _value_ -- use the `get` method instead to retrieve the value (e.g. an integer) instead of a Field instance.