com.supermap.analyst.spatialanalyst
Class DistanceAnalyst
- java.lang.Object
-
- com.supermap.analyst.spatialanalyst.DistanceAnalyst
-
public class DistanceAnalyst extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor and Description DistanceAnalyst()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static CostPathLineResult
costPathLine(Point2D sourcePoint, Point2D targetPoint, DatasetGrid costGrid, SmoothMethod smoothMethod, int smoothDegree, Datasource targetDatasource, java.lang.String targetDatasetName, SteppedListener... listeners)
Calculate the shortest cost path between 2 pointsstatic void
removeSteppedListener(SteppedListener l)
Remove callback listenersstatic PathLineResult
surfacePathLine(Point2D sourcePoint, Point2D targetPoint, DistanceAnalystParameter parameter, SteppedListener... listeners)
Calculates the shortest path to the surface between two points
-
-
-
Method Detail
-
costPathLine
public static CostPathLineResult costPathLine(Point2D sourcePoint, Point2D targetPoint, DatasetGrid costGrid, SmoothMethod smoothMethod, int smoothDegree, Datasource targetDatasource, java.lang.String targetDatasetName, SteppedListener... listeners)
Calculate the shortest cost path between 2 points- Parameters:
sourcePoint
- Departure point coordinatestargetPoint
- Coordinates of the target pointcostGrid
- Consume rasterssmoothMethod
- Result line smoothing methodsmoothDegree
- Result line smoothness factortargetDatasource
- The data source where the output data is located.targetDatasetName
- Name of the output dataset. return A dataset containing a 2-point shortest path linelisteners
- analyze progress callbacks for listening- Returns:
- Distance consumption raster analysis results
-
surfacePathLine
public static PathLineResult surfacePathLine(Point2D sourcePoint, Point2D targetPoint, DistanceAnalystParameter parameter, SteppedListener... listeners)
Calculates the shortest path to the surface between two points- Parameters:
sourcePoint
- Departure point coordinatestargetPoint
- Coordinates of the target pointparameter
- Analyze parameters
-
removeSteppedListener
public static void removeSteppedListener(SteppedListener l)
Remove callback listeners- Parameters:
l
- Callback listening
-
-