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 Detail

      • CalculationTerrain

        public CalculationTerrain()
    • 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 gradient
        slopeType - Types of slope units
        zFactor - Elevation scale coefficient
        targetDatasource - 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 aspect
        targetDatasource - [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 analysis
        line - [in] profile lines
        resampleTolerance - [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 analysis
        line - [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 distance
        line - [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 area
        region - [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 calculation
        specifiedPoint - The specified geographic coordinate point
        slopeType - the slope unit
        zFactor - 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 calculation
        specifiedPoint - The specified geographic coordinate point
        Returns:
        the aspect