GeoEco.Datasets.ArcGIS.ArcGISWorkspace.CreateTableFromTemplate
- ArcGISWorkspace.CreateTableFromTemplate(tableName, templateTable, fields=None, allowSafeCoercions=True, **options)
Creates a table and adds to it the fields present another table (the template).
- Raises:
RuntimeError – The table already exists, or some other problem occurred when creating it or adding fields.
Requires: Python bindings for the Geospatial Data Abstraction Library (GDAL).
- Parameters:
tableName (
str) – Name of the table to create. Minimum length꞉ 1.fields (
listofstr, optional) – Names of the fields in templateTable to add to the new table. If omitted, all the fields in templateTable will be added.allowSafeCoercions (
bool, optional) – If True, when the underlying storage format does not support the data type of a field of templateTable, the most compact alternative data type will be chosen, so long as it can represent all possible values allowed by the template table’s data type. If False, coercions of this kind will not be allowed and an exception will be raised.options (
dictmappingstrtoobject) – Additional options specific to the underlying storage format.
- Returns:
Tablerepresenting the new table.- Return type: