Create a model
The construction of the model is to connect a series of tools in series. When connecting, the output of one tool is used as the input of another tool to manage and analyze GIS data in a streamlined way. The building process of the model is visualized, the Building Way is simple, and the Data Management Analysis is Process-based and automated, which is suitable for new and old users.
The model is built as follows:
- Create canvas:
- In Workspace Manager, right-click the GPA Model node and select Create GPA Model .
- Start tab-& gt Browse Group-& gt GPA Model drop-down arrow, select Create New Model ;
- Click the Ribbon's Geo-Processing Automation (GPA) tab-& gt; New button (this opening method is available only if another model has been opened to start the Geo-Processing Automation (GPA) tab), you can create a new canvas.
- Add Data: Add the data to be analyzed to the Geo-Processing Automation (GPA) model through the Import Data tool. Or drag a Datasource or Dataset from the Manage Works pace to the model window.
- Add Analysis Tool: Select a tool in the toolbox and drag it directly to the canvas. You can drag the tools required in the workflow to the canvas in turn. The tools added to the model can be regular tools or tools customized through Python.
- Rename Tool: Right click the tool to rename the tool, which is convenient for marking and management of the tool.
- Connection tool: In the model, the execution order of the tool is determined by adding a connection relationship between the Model tools, and the output of the previous tool is used as the input of the next tool. From the result node of a Model tool on the canvas, hold down the left mouse button and draw a line to the function node of another Model tool. To connect two Model tools successfully, the result node must be set as the data input type of the function node.
- Parameter Settings: double-click the tool function node in the model to open the parameter panel of the tool and set the parameters related to each tool in the parameter panel.
Note: The tool has required parameters and optional parameters. Required parameters must be set to ensure the normal operation of the model. For the Parameter Description of each function, see the corresponding function description page.
- Model Layout: The model layout can be adjusted manually or automatically.
- Manual layout: After the tool is selected, the layout can be manually adjusted by Move Stop by Mouse or keyboard up, down, left and right operations.
- Auto Layout: Click the Geo-Processing Automation (GPA) tab-& gt; Auto Layout, select the Auto Layout type, and provide two layouts of Vertical Hierarchy and Horizontal Hierarchy.
- Tool Delete: In the process of adjusting or modifying the model, you can delete unnecessary tools by selecting the tool and deleting it with the keyboard.
- Check: After the model is created, check whether the required parameters of each tool in the model are filled in through the Check function. If it is not filled in, the model cannot be executed and Errors will be prompted in the Output Window. Note: If the Geo-Processing Automation (GPA) model is not checked, the model is automatically checked at runtime.
- Run: After the model is built, click the Run button on the toolbar to run the entire Geo-Processing Automation (GPA) model. The Task Management panel is brought up automatically when the tools in the model are run. The Task Management panel displays the execution progress, current execution status, and Log Information for each Model tool. The upper right corner of the tool successfully executed will be marked as √; the upper right corner of the tool Failed to execute will be marked as ×.
- After running successfully, you can run the Context Menu of Result Data through a tool to add the running result to the new Map Browsing.
Related topics
Geo-Processing Automation (GPA) Overview