Open the Dataset

Feature Description

Use the dataset connection information to open the dataset, and return the opened dataset through the "result dataset" output parameters, i.e., a Dataset. When some GPA tools' input parameters require passing in a dataset (i.e., an input parameter of Dataset type), for example, the "create a raster data pyramid" tool, its "source raster data" input parameter needs to specify a raster dataset (DatasetGrid). At this time, you can use the "open the dataset" tool to open the target dataset, and then assign the returned dataset to the "source raster data" input parameter of the "create a raster data pyramid" tool through connection, as shown in the figure below. In this way, when the model executes, the opened raster dataset is dynamically assigned to the corresponding parameter of the "create a raster data pyramid" tool.

Parameter Description

Parameter Name Default Value Parameter Interpretation Parameter Type
connection info   The connection information of the dataset to be opened. This parameter is a connection information string, including: datasource type, dataset name, and other information. Use the '--key=value' method to set it, with multiple values separated by spaces. For example:
1. Open a dataset in a local UDBX file database:
--server=G:\package\1110\idesktopx-11.1.0-1101-8153-98159\test3.udbx --dataset=H47C001004 --dbType=udbx --providerType=sdx
2. Open a dataset in a PostGIS database datasource:
--server=172.16.120.35:5432 --database=TEST --user=TEST --password=●●●●●● --alias=TEST --dataset=TEST --maxConnPoolNum=10 --dbType=PGGIS --providerType=sdx
In the GPA WebUI interface of iServer and the GPA modeling interface of iDesktopX, this parameter provides a UI interface. You do not need to write the above complex string; simply fill in the necessary information in the "Set Connection Info" dialog box to automatically generate the string content of this parameter. As shown in the figure below in the GPA WebUI interface of iServer, click the "Set" button on the right side of this parameter to open the dialog box.
String

Output Result

Parameter Name Parameter Interpretation Parameter Type
result dataset Returns the result dataset if opened successfully; returns null if failed. Dataset