FromDefinitionDataSourceBuilder Class
Summary: Provides the ability to configure a data source object
Module: aspose.gis.formats.database.fromdefinition
Full Name: aspose.gis.formats.database.fromdefinition.FromDefinitionDataSourceBuilder
Aspose.PSD Version: 25.9.0
Methods
| Name | Description |
|---|---|
| add_attribute(name, type) | Configures the name of the field that will contain information for the feature attribute. |
| build() | The method retrieves an implementation of the IFromDefinitionDataSource |
| geometry_field(name) | Configures the name of the field from which the geometry will be extracted. |
| identity_attribute(name, overwrite_same_key) | Mandatory setting that allows tracking changes. |
Method: add_attribute(name, type)
add_attribute(name, type)
Configures the name of the field that will contain information for the feature attribute.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| name | string | Name of database field for attribute. |
| type | AttributeDataType | Type of data into which data from the database should be converted. |
Returns
| Type | Description |
|---|---|
| FromDefinitionDataSourceBuilder | FromDefinitionDataSourceBuilder |
Method: build()
build()
The method retrieves an implementation of the IFromDefinitionDataSource
Returns
| Type | Description |
|---|---|
| IFromDefinitionDataSource | Implementation of the IFromDefinitionDataSource |
Method: geometry_field(name)
geometry_field(name)
Configures the name of the field from which the geometry will be extracted.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| name | string | Name of gemetry field. |
Returns
| Type | Description |
|---|---|
| FromDefinitionDataSourceBuilder | FromDefinitionDataSourceBuilder |
Method: identity_attribute(name, overwrite_same_key)
identity_attribute(name, overwrite_same_key)
Mandatory setting that allows tracking changes.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| name | string | An attribute of a feature that will be treated as uniquely identifying the feature. |
| overwrite_same_key | bool | If this flag is set to true, then newly added features with a unique identifier the same that is already present in the layer, the current one will be overwritten, and the data will be read as updated if differences are found. Otherwise, an exception will be thrown. |
Returns
| Type | Description |
|---|---|
| FromDefinitionDataSourceBuilder | FromDefinitionDataSourceBuilder |