GeoEco.Datasets.Field
- class GeoEco.Datasets.Field(name, dataType, length=None, precision=None, isNullable=None, isSettable=True)
Bases:
objectDescribes 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.Noneif unknown or not applicable to theDataType.precision (
int, optional) – Precision of the field, if known.Noneif unknown or not applicable to theDataType.isNullable (
bool, optional) – True if values of the field can beNULL, False if they cannot, andNoneif it is unknown whether they can beNULL.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:
Fieldinstance.- Return type:
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
(
boolorNone) True if values of the field can beNULL, False if they cannot, andNoneif it is unknown whether they can beNULL. 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
(
intorNone) Maximum length of the field, if known.Noneif unknown or not applicable to theDataType. Read only.
- property Precision
(
intorNone) Precision of the field, if known.Noneif unknown or not applicable to theDataType. Read only.
Methods