com.supermap.analyst.spatialanalyst
Class CalculationTerrain
- java.lang.Object
-
- com.supermap.analyst.spatialanalyst.CalculationTerrain
-
public class CalculationTerrain extends java.lang.Object
The terrain analysis class
-
-
Constructor Summary
Constructors Constructor and Description CalculationTerrain()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method and Description static DatasetGrid
calculateAspect(DatasetGrid sourceDatasetGrid, Datasource targetDatasource, java.lang.String targetDatasetName)
Calculates the aspectstatic ProfileResult
calculateProfile(DatasetGrid sourceDatasetGrid, GeoLine line)
brief performing profile analysisstatic ProfileResult
calculateProfile(DatasetGrid sourceDatasetGrid, GeoLine line, double resampleTolerance)
Deprecated.static DatasetGrid
calculateSlope(DatasetGrid sourceDatasetGrid, SlopeType slopeType, double zFactor, Datasource targetDatasource, java.lang.String targetDatasetName)
Calculates the slope gradientstatic double
computePointAspect(DatasetGrid sourceDatasetGrid, Point2D specifiedPoint)
Calculates the aspect of the specified pointstatic double
computePointSlope(DatasetGrid sourceDatasetGrid, Point2D specifiedPoint, SlopeType slopeType, double zFactor)
Calculates the slope gradient of the specified pointstatic double
computeSurfaceArea(DatasetGrid sourceDatasetGrid, GeoRegion region)
The surface areastatic double
computeSurfaceDistance(DatasetGrid sourceDatasetGrid, GeoLine line)
The surface distancestatic TerrainAnalystSetting
getAnalystSetting()
The settings of terrain analysesstatic void
setAnalystSetting(TerrainAnalystSetting terrainAnalystSetting)
The settings of terrain analyses
-
-
-
Method Detail
-
getAnalystSetting
public static TerrainAnalystSetting getAnalystSetting()
The settings of terrain analyses- Returns:
- The settings of terrain analyses
-
setAnalystSetting
public static void setAnalystSetting(TerrainAnalystSetting terrainAnalystSetting)
The settings of terrain analyses- Parameters:
terrainAnalystSetting
- The settings of terrain analyses
-
calculateSlope
public static DatasetGrid calculateSlope(DatasetGrid sourceDatasetGrid, SlopeType slopeType, double zFactor, Datasource targetDatasource, java.lang.String targetDatasetName)
Calculates the slope gradient- Parameters:
sourceDatasetGrid
- The raster data used for the calculation of the slope gradientslopeType
- Types of slope unitszFactor
- Elevation scale coefficienttargetDatasource
- Output datasource.targetDatasetName
- The target dataset name.- Returns:
- The slope map
-
calculateAspect
public static DatasetGrid calculateAspect(DatasetGrid sourceDatasetGrid, Datasource targetDatasource, java.lang.String targetDatasetName)
Calculates the aspect- Parameters:
sourceDatasetGrid
- [in] The raster data used for the calculation of the aspecttargetDatasource
- [in] Output datasource.targetDatasetName
- [in] The target dataset name.- Returns:
- The aspect map
-
calculateProfile
@Deprecated public static ProfileResult calculateProfile(DatasetGrid sourceDatasetGrid, GeoLine line, double resampleTolerance)
Deprecated.Profile analysis- Parameters:
sourceDatasetGrid
- [in] The raster data used for the profile analysisline
- [in] profile linesresampleTolerance
- [in] Resample tolerance- Returns:
- the profile analysis result
-
calculateProfile
public static ProfileResult calculateProfile(DatasetGrid sourceDatasetGrid, GeoLine line)
brief performing profile analysis- Parameters:
sourceDatasetGrid
- [in] The raster data used for the profile analysisline
- [in] profile lines- Returns:
- the profile analysis result
-
computeSurfaceDistance
public static double computeSurfaceDistance(DatasetGrid sourceDatasetGrid, GeoLine line)
The surface distance- Parameters:
sourceDatasetGrid
- [in] The raster data used for the calculation of the surface distanceline
- [in] specifies the route of calculating the surface distance- Returns:
- Return the surface distance
-
computeSurfaceArea
public static double computeSurfaceArea(DatasetGrid sourceDatasetGrid, GeoRegion region)
The surface area- Parameters:
sourceDatasetGrid
- [in] The raster data used for the calculation of the surface arearegion
- [in] specifies the area of calculating the surface distance- Returns:
- Return the surface area
-
computePointSlope
public static double computePointSlope(DatasetGrid sourceDatasetGrid, Point2D specifiedPoint, SlopeType slopeType, double zFactor)
Calculates the slope gradient of the specified point- Parameters:
sourceDatasetGrid
- The raster data used for the calculationspecifiedPoint
- The specified geographic coordinate pointslopeType
- the slope unitzFactor
- the elevation scale coefficient- Returns:
- the slope gradient
-
computePointAspect
public static double computePointAspect(DatasetGrid sourceDatasetGrid, Point2D specifiedPoint)
Calculates the aspect of the specified point- Parameters:
sourceDatasetGrid
- The raster data used for the calculationspecifiedPoint
- The specified geographic coordinate point- Returns:
- the aspect
-
-