com.supermap.analyst.spatialanalyst
Class VisibilityAnalyst
- java.lang.Object
-
- com.supermap.analyst.spatialanalyst.VisibilityAnalyst
-
public class VisibilityAnalyst extends java.lang.Object
Visibility analysis
-
-
Constructor Summary
Constructors Constructor and Description VisibilityAnalyst()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static void
addSteppedListener(SteppedListener Listener)
Add the time listener of the progress barstatic DatasetGrid
calculateViewShed(DatasetGrid sourceDataset, Point3D viewPoint, double startAngle, double viewAngle, double viewRadius, Datasource targetDatasource, java.lang.String targetDatasetName)
Single-point viewshed analysisstatic DatasetGrid
calculateViewShed(DatasetGrid sourceDataset, Point3Ds viewPoints, double[] startAngles, double[] viewAngles, double[] viewRadiuses, Datasource targetDatasource, java.lang.String targetDatasetName, ViewShedType viewShedType)
Multiple-points viewshed analysisstatic GridAnalystSetting
getAnalystSetting()
Gets the raster analysis settingsstatic VisibleResult
isVisible(DatasetGrid sourceDataset, Point3D fromPoint, Point3D toPoint)
Whether it is visible from one point to another pointstatic VisibleResult[]
isVisible(DatasetGrid sourceDataset, Point3Ds fromPoints, Point3Ds toPoints)
Whether they are visible from multiple points to multiple pointsstatic GeoLine[]
lineOfSight(DatasetGrid sourceDataset, Point3D fromPoint, Point3D toPoint)
The sight line analysisstatic void
removeSteppedListener(SteppedListener Listener)
Remove the time listener of the progress barstatic void
setAnalystSetting(GridAnalystSetting gridAnalystSetting)
Sets the raster analysis settings
-
-
-
Method Detail
-
getAnalystSetting
public static GridAnalystSetting getAnalystSetting()
Gets the raster analysis settings- Returns:
- The settings of raster analyses
-
setAnalystSetting
public static void setAnalystSetting(GridAnalystSetting gridAnalystSetting)
Sets the raster analysis settings- Parameters:
gridAnalystSetting
- The raster analysis settings
-
isVisible
public static VisibleResult isVisible(DatasetGrid sourceDataset, Point3D fromPoint, Point3D toPoint)
Whether it is visible from one point to another point- Parameters:
sourceDataset
- The raster data used for the calculation of the visibilityfromPoint
- The starting point of the calculationtoPoint
- The ending point of the calculation- Returns:
- the visible object
-
lineOfSight
public static GeoLine[] lineOfSight(DatasetGrid sourceDataset, Point3D fromPoint, Point3D toPoint)
The sight line analysis- Parameters:
sourceDataset
- The raster data used for the sight line analysisfromPoint
- The starting point of the sight line analysistoPoint
- The ending point of the sight line analysis- Returns:
- Return the analysis result. The first line object is the visible line, and the second line is invisible (it could be null)
-
isVisible
public static VisibleResult[] isVisible(DatasetGrid sourceDataset, Point3Ds fromPoints, Point3Ds toPoints)
Whether they are visible from multiple points to multiple points- Parameters:
sourceDataset
- The raster data used for the calculation of the visibilityfromPoints
- The starting point collectiontoPoints
- The ending point of the calculation- Returns:
- Multiple points and multiple result datasets. If there are m observation points and n observed points, the result array is m*n
-
calculateViewShed
public static DatasetGrid calculateViewShed(DatasetGrid sourceDataset, Point3D viewPoint, double startAngle, double viewAngle, double viewRadius, Datasource targetDatasource, java.lang.String targetDatasetName)
Single-point viewshed analysis- Parameters:
sourceDataset
- The raster data used for the calculation of the viewshedviewPoint
- The observation positionstartAngle
- The starting angle (rotating from the due north in a clockwise direction) of the observation position.viewAngle
- The observed angleviewRadius
- The view range less than 0 means no limitationstargetDatasource
- Output datasource.targetDatasetName
- The target dataset name.- Returns:
- the visible area of the observation point
-
calculateViewShed
public static DatasetGrid calculateViewShed(DatasetGrid sourceDataset, Point3Ds viewPoints, double[] startAngles, double[] viewAngles, double[] viewRadiuses, Datasource targetDatasource, java.lang.String targetDatasetName, ViewShedType viewShedType)
Multiple-points viewshed analysis- Parameters:
sourceDataset
- The raster data used for the calculation of the viewshedviewPoints
- The collection of observation positionsstartAngles
- The collection of starting angles (rotating from the due north in a clockwise direction) of the observation position.viewAngles
- The collection of observation anglesviewRadiuses
- The collection of view ranges (less than 0 means no limitations)targetDatasource
- Output datasource.targetDatasetName
- The target dataset name.viewShedType
- viewshed types- Returns:
- the common areas viewed in multiple observation positions
-
addSteppedListener
public static void addSteppedListener(SteppedListener Listener)
Add the time listener of the progress bar- Parameters:
Listener
- the time listener of the progress bar
-
removeSteppedListener
public static void removeSteppedListener(SteppedListener Listener)
Remove the time listener of the progress bar- Parameters:
Listener
- the time listener of the progress bar
-
-