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,
Nonewill 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
date, datetime
float32, float64
int16, int32, oid
string
For fields with the
datetime.datedata type, the time of the returneddatetime.datetimeinstance will be 00:00:00.- Return type: