When performing network analysis, it is necessary to first specify the network locations participating in the analysis. For example, when conducting path analysis, sites need to be specified, and when finding the nearest facility points, facility points and event points need to be specified. There are two ways to add sites: one is to add sites by clicking the mouse in the network data layer; the other is to import point objects from a point dataset as sites.
Add Site by Mouse
In the toolbar of the Instance Manager window, click the "Add by Mouse" button, and the mouse cursor on the map will change to the adding state. You can then click the left mouse button at a suitable position on the map to add a site. Each time a site is added, it will automatically be added to the Stop Info in the Instance Manager window. After adding is complete, right-click the mouse to end the operation. Note: A suitable node tolerance needs to be set. If the mouse click position exceeds the node tolerance, it may cause the site addition to fail.
Import Stops
Import a point dataset from the current workspace as sites. In the tree directory of the "Instance Manager" window, right-click the "Sites" directory node, select the "Import" command from the context menu, and the "Import Stops" dialog box will pop up. The import method for barrier points is similar.
Parameter Description:
- Source Dataset
Datasource: Select the datasource where the point data is located.
Dataset: Select the point dataset to import.
- Name Field: Select a name field. After successful import, the site name will display as the attribute in this field.
- Node Filter
Set certain conditions for the imported points. Only points that meet the conditions can be imported as sites, facility points, event points, center points, barrier points, etc. When using it, you can either directly input the expression or click the button on the right to construct the expression in the pop-up "SQL Expression" dialog for filtering. For how to build an SQL expression, please refer to SQL Expression.
- Clear Existing Stops: Select this checkbox. When importing stops, existing added sites will be deleted before importing the new stops. The import result will retain only the points in the current dataset or points that satisfy the filter.