gis.gdal.Feature.num_fields

num_fields Returns the number of fields of data associated with the feature. This will be the same for all features in a given layer and is equivalent to the Layer.num_fields property of the Layer object the feature came from.

gis.gdal.Feature.fields

fields Returns a list of the names of the fields of data associated with the feature. This will be the same for all features in a given layer and is equivalent to the Layer.fields property of the Layer object the feature came from.

gis.gdal.Feature.geom_type

geom_type Returns the type of geometry for this feature, as an OGRGeomType object. This will be the same for all features in a given layer and is equivalent to the Layer.geom_type property of the Layer object the feature came from.

gis.gdal.Feature.get

get A method that returns the value of the given field (specified by name) for this feature, not a Field wrapper object: >>> city.get('Population') 102121

gis.gdal.Feature.index

index A method that returns the index of the given field name. This will be the same for all features in a given layer: >>> city.index('Population') 1

gis.gdal.Feature.geom

geom Returns the geometry for this feature, as an OGRGeometry object: >>> city.geom.tuple (-104.609252, 38.255001)

gis.gdal.Feature.fid

fid Returns the feature identifier within the layer: >>> city.fid 0

gis.gdal.Envelope.tuple

tuple A tuple representing the envelope.

gis.gdal.Envelope.ur

ur The upper-right coordinate, as a tuple.

gis.gdal.Envelope.wkt

wkt A string representing this envelope as a polygon in WKT format.