FieldType
gma.gio.FieldType
class FieldType(name = None, dtype = "UNKNOWN"):
Field type object for vector data. Create a FieldType object.
Optional:
name: str. Default = None
The name of the field. None for dtype name.
dtype: str. Default = 'UNKNOWN'
The data type of the field. See `dtypes.DefinedFieldDataTypes` for valid types.
Methods
set_precision
[method] .set_precision(precision):
Set the formatting precision for this field in characters.
Parameters:
precision: int.
the new precision.
set_type
[method] .set_type(f_dtype):
Set the formatting width for this field in characters.
Parameters:
f_dtype: int||str.
the new field data type
set_width
[method] .set_width(width):
Set the formatting width for this field in characters.
Parameters:
width: int.
the new width
Property
default
Field default value. -> str/int/float/...
ftype
Field data type. -> str
name
Field name. -> str
precision
Field precision. -> int
width
Field width. -> int