GeoEco.Datasets.Field

class GeoEco.Datasets.Field(name, dataType, length=None, precision=None, isNullable=None, isSettable=True)

Bases: object

Describes a field in a Table.

Parameters:
  • name (str) – Name of the field. Minimum length꞉ 1.

  • dataType (str) – Data type of the field. Usually one of 'binary', 'date', 'datetime', 'float32', 'float64', ‘int16', 'int32', or 'string'. Minimum length꞉ 1.

  • length (int, optional) – Maximum length of the field, if known. None if unknown or not applicable to the DataType.

  • precision (int, optional) – Precision of the field, if known. None if unknown or not applicable to the DataType.

  • isNullable (bool, optional) – True if values of the field can be NULL, False if they cannot, and None if it is unknown whether they can be NULL.

  • isSettable (bool, optional) – True if values of the field can be set, False if they cannot, e.g. because they are automatically assigned by the underlying storage system, as with ArcGIS “object IDs”.

Returns:

Field instance.

Return type:

Field

Properties

property DataType

(str) Data type of the field. Usually one of 'binary', 'date', 'datetime', 'float32', 'float64', ‘int16', 'int32', or 'string'. Read only. Minimum length꞉ 1.

property IsNullable

(bool or None) True if values of the field can be NULL, False if they cannot, and None if it is unknown whether they can be NULL. Read only.

property IsSettable

(bool) True if values of the field can be set, False if they cannot, e.g. because they are automatically assigned by the underlying storage system, as with ArcGIS “object IDs”. Read only.

property Length

(int or None) Maximum length of the field, if known. None if unknown or not applicable to the DataType. Read only.

property Name

(str) Name of the field. Read only. Minimum length꞉ 1.

property Precision

(int or None) Precision of the field, if known. None if unknown or not applicable to the DataType. Read only.

Methods