Create Datasource

Feature Description

A datasource (Datasource) is used to store spatial data. Any operation on spatial data requires opening or creating a datasource. Users can create appropriate datasources based on the purpose of the data, saving different spatial data to the datasource for unified management and operation. The datasources created by this tool are mainly divided into the following two categories:

  • File database: Stores spatial data and attribute data directly in files, supporting the creation of UDB(X), ShapeFile, TIFF, and IMG files.
  • Database datasource: Stores the datasource in a database, supporting the creation of over ten types of database datasources such as Dameng, HUAWEI CLOUD database PostgreSQL, Yugong, Elasticsearch, MongoDB, PostgreSQL, PostGIS, etc. The creation of some datasource types requires local client configuration, and the parameters for creating different database types vary. For details, refer to Open Database Datasource.

Parameter Description

Parameter Name Parameter Interpretation Parameter Type
Datasource Connection Information

Connection information for creating a datasource. Set using the '--key=value' format, with multiple key-value pairs separated by spaces. For example, the connection information for UDBX: --providerType=sdx --server=F:\data\landuse.udbx --dataset=DLTB --dbType=udbx. For more details, refer to Data Connection Information Parameter Description.

Note: When using create a datasource alone to create a raster file, after executing the create a datasource tool, the raster file will not be generated in the result folder. It is necessary to synchronously use the create raster dataset tool or create image dataset to generate the raster file (.tif,.tiff) at the specified file path.

String
Overwrite Whether to overwrite when the target datasource already exists. If checked, it will overwrite, only valid for UDB and UDBX. By default, it is not checked. Boolean

Output Result

Parameter Name Parameter Interpretation Parameter Type
Result Datasource Returns the successfully created datasource Datasource