GeoEco.Datasets.SelectCursor.GetValue

SelectCursor.GetValue(field)

Retrieves the value of a field of the current row, given the name of the field.

Parameters:

field (str) –

Name of the field to get the value of.

If you specified a list of fields to retrieve when you opened the cursor, you will only be able to retrieve the values of those fields. If you did not specify such a list, then you will be able to retrieve all of the fields of the table.

This method cannot be used to get the geometry of the row, even if the underlying data format stores the geometry in a named field. To get the geometry, use GetGeometry(). Minimum length꞉ 1.

Returns:

Value of the field for the current row.

If the value of the field is a database NULL, None will be returned. Otherwise the Python data type of the returned value will depend on the data type of the field:

Field Data Type

Returned Python Type

binary

str

date, datetime

datetime.datetime

float32, float64

float

int16, int32, oid

int

string

str

For fields with the datetime.date data type, the time of the returned datetime.datetime instance will be 00:00:00.

Return type:

object