/// <summary>Creates a new network dataset in the current OSM dataset</summary> public void CreateNetworkDataset() { _edgeSources = new List <IEdgeFeatureSource>(); _junctionSources = new List <IJunctionFeatureSource>(); _turnSource = null; _networkAttrs = new List <IEvaluatedNetworkAttribute>(); using (_taskManager = new RunTaskManager(_trackCancel ?? new CancelTrackerClass(), _messages)) { _taskManager.ExecuteTask("GPTools_OSMGPCreateNetworkDataset_extractingEdges", ExtractEdgeFeatureClasses); _taskManager.ExecuteTask("GPTools_OSMGPCreateNetworkDataset_extractingJunctions", ExtractJunctionFeatureClasses); _taskManager.ExecuteTask("GPTools_OSMGPCreateNetworkDataset_assignConnectivity", AssignConnectivity); _taskManager.ExecuteTask("GPTools_OSMGPCreateNetworkDataset_extractingTurns", ExtractTurnRestrictions); _taskManager.ExecuteTask("GPTools_OSMGPCreateNetworkDataset_addingNetworkAttributes", AddNetworkAttributes); _taskManager.ExecuteTask("GPTools_OSMGPCreateNetworkDataset_creating", CreateBuildableNDS); _taskManager.ExecuteTask("GPTools_OSMGPCreateNetworkDataset_building", BuildNDS); } }
/// <summary>Creates a new network dataset in the current OSM dataset</summary> public void CreateNetworkDataset() { _edgeSources = new List<IEdgeFeatureSource>(); _junctionSources = new List<IJunctionFeatureSource>(); _turnSource = null; _networkAttrs = new List<IEvaluatedNetworkAttribute>(); using (_taskManager = new RunTaskManager(_trackCancel ?? new CancelTrackerClass(), _messages)) { _taskManager.ExecuteTask("GPTools_OSMGPCreateNetworkDataset_extractingEdges", ExtractEdgeFeatureClasses); _taskManager.ExecuteTask("GPTools_OSMGPCreateNetworkDataset_extractingJunctions", ExtractJunctionFeatureClasses); _taskManager.ExecuteTask("GPTools_OSMGPCreateNetworkDataset_assignConnectivity", AssignConnectivity); _taskManager.ExecuteTask("GPTools_OSMGPCreateNetworkDataset_extractingTurns", ExtractTurnRestrictions); _taskManager.ExecuteTask("GPTools_OSMGPCreateNetworkDataset_addingNetworkAttributes", AddNetworkAttributes); _taskManager.ExecuteTask("GPTools_OSMGPCreateNetworkDataset_creating", CreateBuildableNDS); _taskManager.ExecuteTask("GPTools_OSMGPCreateNetworkDataset_building", BuildNDS); } }