com.supermap.analyst.networkanalyst
Class NetworkBuilder
- java.lang.Object
-
- com.supermap.analyst.networkanalyst.NetworkBuilder
-
public class NetworkBuilder extends java.lang.Object
Build a network dataset.
-
-
Constructor Summary
Constructors Constructor and Description NetworkBuilder()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method and Description static void
addSteppedListener(SteppedListener Listener)
Add the progress bar listenerstatic boolean
appendToNetwork(DatasetVector networkDataset, DatasetVector[] datasets)
static DatasetVector
buildNetwork(DatasetVector[] lineDatasets, DatasetVector[] pointDatasets, Datasource outputDatasource, java.lang.String networkDatasetName, NetworkSplitMode networkSplitMode, double tolerance)
Deprecated.static DatasetVector
buildNetwork(DatasetVector[] lineDatasets, DatasetVector[] pointDatasets, java.lang.String[] lineFieldNames, java.lang.String[] pointFieldNames, Datasource outputDatasource, java.lang.String networkDatasetName, NetworkSplitMode networkSplitMode, double tolerance)
static DatasetVector
buildNetwork(DatasetVector line, DatasetVector point, java.lang.String edgeIDField, java.lang.String fromNodeField, java.lang.String toNodeField, java.lang.String nodeIDField, Datasource outputDatasource, java.lang.String networkDatasetName)
Build a network dataset.static DatasetVector
buildNetwork(DatasetVector lineDataset, Datasource outputDatasource, java.lang.String networkDatasetName, double tolerance)
Deprecated.static DatasetVector
createTurnTable(DatasetVector networkDataset, QueryParameter queryParameter, Datasource outputDatasource, java.lang.String outputDatasetName)
Creates the turn table dataset.static void
removeSteppedListener(SteppedListener Listener)
Removes the progress bar listener
-
-
-
Method Detail
-
buildNetwork
@Deprecated public static DatasetVector buildNetwork(DatasetVector lineDataset, Datasource outputDatasource, java.lang.String networkDatasetName, double tolerance)
Deprecated.Constructs a network dataset based on a line dataset- Parameters:
lineDataset
- DatasetVector The line datasetoutputDatasource
- Datasource Output datasourcenetworkDatasetName
- String The name of the output network datasettolerance
- The tolerance- Returns:
- DatasetVector
-
buildNetwork
@Deprecated public static DatasetVector buildNetwork(DatasetVector[] lineDatasets, DatasetVector[] pointDatasets, Datasource outputDatasource, java.lang.String networkDatasetName, NetworkSplitMode networkSplitMode, double tolerance)
Deprecated.Constructs a network dataset based on a line dataset array and a point dataset array- Parameters:
lineDatasets
- DatasetVector[] The line dataset arraypointDatasets
- DatasetVector[] The point dataset arrayoutputDatasource
- Datasource Output datasourcenetworkDatasetName
- String The name of the output network datasetnetworkSplitMode
- NetworkSplitMode The split modetolerance
- double whether points can be taken as the tolerance of nodes in a network- Returns:
- DatasetVector
-
buildNetwork
public static DatasetVector buildNetwork(DatasetVector line, DatasetVector point, java.lang.String edgeIDField, java.lang.String fromNodeField, java.lang.String toNodeField, java.lang.String nodeIDField, Datasource outputDatasource, java.lang.String networkDatasetName)
Build a network dataset.- Parameters:
line
- the line datasetpoint
- the point datasetedgeIDField
- the line fieldfromNodeField
- the starting point fieldtoNodeField
- the ending point fieldnodeIDField
- the middle point fieldoutputDatasource
- the output datasourcenetworkDatasetName
- the name of the network dataset- Returns:
- the output network dataset
-
createTurnTable
public static DatasetVector createTurnTable(DatasetVector networkDataset, QueryParameter queryParameter, Datasource outputDatasource, java.lang.String outputDatasetName)
Creates the turn table dataset.- Parameters:
networkDataset
- the network datasetqueryParameter
- Query parameteroutputDatasource
- the output datasourceoutputDatasetName
- The name of the output dataset.- Returns:
- DatasetVector
-
buildNetwork
public static DatasetVector buildNetwork(DatasetVector[] lineDatasets, DatasetVector[] pointDatasets, java.lang.String[] lineFieldNames, java.lang.String[] pointFieldNames, Datasource outputDatasource, java.lang.String networkDatasetName, NetworkSplitMode networkSplitMode, double tolerance)
- Parameters:
lineDatasets
- the line dataset arraypointDatasets
- the point dataset arraylineFieldNames
- the line dataset name arraypointFieldNames
- the point dataset name arrayoutputDatasource
- the output datasourcenetworkDatasetName
- outputs the name of the network datasetnetworkSplitMode
- the split modetolerance
- The tolerance- Returns:
- the output network dataset
-
appendToNetwork
public static boolean appendToNetwork(DatasetVector networkDataset, DatasetVector[] datasets)
- Parameters:
networkDataset
- the network datasetdatasets
- the datasets- Returns:
- the output network dataset
-
addSteppedListener
public static void addSteppedListener(SteppedListener Listener)
Add the progress bar listener- Parameters:
Listener
- the progress bar listener
-
removeSteppedListener
public static void removeSteppedListener(SteppedListener Listener)
Removes the progress bar listener- Parameters:
Listener
- the progress bar listener
-
-