3D network analysis can solve complex path analysis problems inside a building and obtain the optimal escape path to assist in emergency evacuation. The GP Tool for 3D network analysis can be called not only in the 3D environment of the desktop, but also published as the GP service and used on the client. However, the analysis tools used for C/S and B/S have slight differences in structure. Here we will compare them one by one.
The model called by c/s can be obtained from \ arctutor \ Network Analyst \ workflow \ 3drouting In the tutor data. Its construction is shown in:
Use tools such as make route layer (create path), add location (add start point and destination point), and solve (solution) in the path analysis toolbox, calculate the shortest path with walking distance as the control condition.
However, if you directly publish this model as a GP service, a series of problems will occur. Therefore, before you publish the model as a GP service, make the following changes:
1. Modify input parameters
If you directly publish the service without modifying the parameters, the result will show an error (server logging error code: 20007). The content is roughly because invalid input parameters are referenced, causing the GP service initialization to fail.
Therefore, the content to be modified in the first step is to directly use the network dataset as the input data rather than the input parameters.
2. Modify add location
Interactive input and file input can be used for Location Selection on the client side. If file input is used, pay attention to the input file type. Because data such as element classes, tables, and grids cannot be used as input parameters on ArcGIS Explorer and web application clients, modify the input parameter type to feature set, feature layer, or Layer file, as shown in. If the input parameters are data such as element classes and tables, the client fails to analyze the data, and the server log record error is code: 000732.
3. Add output data
Select the calculation path and display it on the client.
Through the preceding steps, you can correctly analyze the 3D Path Analysis Service on the client.