Configuring 3D network analysis service provider |
Blow shows how to configure a 3D network analysis service provider:
<provider class="com.supermap.services.providers.UGCNetworkAnalyst3DProvider" enabled="true" name="networkAnalyst3D-Pipe3D">
<config class="com.supermap.services.providers.UGCNetworkAnalyst3DSetting">
<workspaceConnectString>../../samples/data/Realspace/PipeLine3D/Pipe3D.sxwu</workspaceConnectString>
<datasourceName>Pipe3D</datasourceName>
<datasetName>Network</datasetName>
<edgeIDField>SMEDGEID</edgeIDField>
<fNodeIDfield>SMFNODE</fNodeIDfield>
<tNodeIDField>SMTNODE</tNodeIDField>
<nodeIDField>SMNODEID</nodeIDField>
<tolerance>0.0</tolerance>
<weightFieldInfo3Ds>
<com.supermap.services.components.commontypes.WeightFieldInfo3D>
<name>SMLENGTH</name>
<ftWeightField>SMLENGTH</ftWeightField>
<tfWeightField>SMLENGTH</tfWeightField>
</com.supermap.services.components.commontypes.WeightFieldInfo3D>
</weightFieldInfo3Ds>
</config>
</provider>
Among it, data-connection-related parameters are used to specify the data participating in analysis, <edgeIDField>, <fNodeIDfield>, <tNodeIDField>, <nodeIDField> are required parameters, <tolerance>, <weightFieldInfo3Ds> are optional parameters, they are defined by the UGCNetworkAnalyst3DSetting class. For the detailed descriptions of these parameters, see: The configuration parameters of 3D network analysis service provider.
<workspaceConnectString> represents the workspace path used by the service provider. Besides, workspace can be read from environment variables and system configuration files, can be written as:
<workspaceConnectString>${datapath1}/World.sxwu</workspaceConnectString>
For details, see: Presetting local workspace path