com.esri.arcgis.spatialanalyst
Interface IDistanceOp2

All Superinterfaces:
Serializable
All Known Implementing Classes:
RasterDistanceOp

public interface IDistanceOp2
extends Serializable

Provides access to members that control the distance operations.

Remarks

  • Read the Working with ArcGIS Spatial Analyst objects technical document for general information on implementing Spatial Analyst operations.
  • Product Availability

    Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Spatial Analyst Extension.


    Method Summary
     IGeoDataset corridor(IGeoDataset distance1, IGeoDataset distance2)
              Calculates for each cell location the sum of the accumulative costs for two input accumulative-cost datasets.
     IGeoDataset costAllocation(IGeoDataset sourceData, IGeoDataset costRaster, Object maxDistance, Object valueRaster)
              Calculates for each output cell the zone that could be reached with the least accumulative cost.
     IGeoDataset costBackLink(IGeoDataset sourceData, IGeoDataset costRaster, Object maxDistance, Object valueRaster)
              Calculates the neighbor that is the next cell on the least-accumulative-cost path from a cell to a source cell.
     IGeoDataset costDistance(IGeoDataset sourceData, IGeoDataset costRaster, Object maxDistance, Object valueRaster)
              Calculates for each cell the least-accumulative-cost distance over a cost surface to a source cell or a set of source cells.
     IGeoDataset costDistanceFull(IGeoDataset sourceData, IGeoDataset costRaster, boolean distance, boolean backlink, boolean allocation, Object maxDistance, Object valueRaster)
              Calculates for each cell the least-accumulative-cost distance, backlink, and allocation over a cost surface to a source cell or a set of source cells.
     IGeoDataset costPath(IGeoDataset fromData, IGeoDataset distance, IGeoDataset backlink, int pathType)
              Calculates the least-cost path(s) from selected cell(s) in the input data to the closest source cell.
     IGeometryCollection costPathAsPolyline(IPointCollection sourcePoints, IGeoDataset distance, IGeoDataset backlink)
              Calculates the least-cost path(s) from selected points in the input data and returns it as a polyline.
     IGeoDataset eucAllocation(IGeoDataset sourceData, Object maxDistance, Object valueRaster)
              Calculates for each cell the zone of the closest source cell (in Euclidean distance).
     IGeoDataset eucDirection(IGeoDataset sourceData, Object maxDistance, Object valueRaster)
              Calculates the direction in degrees from each cell center to the cell center of the closest source.
     IGeoDataset eucDistance(IGeoDataset sourceData, Object maxDistance, Object valueRaster)
              Calculates for each cell the Euclidean distance to the closest source.
     IGeoDataset eucDistanceFull(IGeoDataset sourceData, boolean distance, boolean direction, boolean allocation, Object maxDistance, Object valueRaster)
              Calculates for each cell optionally the Euclidean distance, direction, and allocation to the closest source.
     IGeoDataset pathAllocation(IGeoDataset sourceData, Object costRaster, Object surfaceRaster, Object horizRaster, Object horizFactor, Object vertRaster, Object vertFactor, Object maxDistance, Object valueRaster)
              Calculates for each output cell the zone that could be reached with the least accumulative cost.
     IGeoDataset pathBackLink(IGeoDataset sourceData, Object costRaster, Object surfaceRaster, Object horizRaster, Object horizFactor, Object vertRaster, Object vertFactor, Object maxDistance, Object valueRaster)
              Calculates the neighbor that is the next cell on the least-accumulative-path path from a cell to a source cell.
     IGeoDataset pathDistance(IGeoDataset sourceData, Object costRaster, Object surfaceRaster, Object horizRaster, Object horizFactor, Object vertRaster, Object vertFactor, Object maxDistance, Object valueRaster)
              Calculates for each cell the least-accumulative-path distance over a path surface to a source cell or a set of source cells.
     IGeoDataset pathDistanceFull(IGeoDataset sourceData, boolean distance, boolean backlink, boolean allocation, Object costRaster, Object surfaceRaster, Object horizRaster, Object horizFactor, Object vertRaster, Object vertFactor, Object maxDistance, Object valueRaster)
              Calculates for each cell the least-accumulative-cost distance, backlink, and allocation over a cost surface to a source cell or a set of source cells.
     

    Method Detail

    eucDistance

    IGeoDataset eucDistance(IGeoDataset sourceData,
                            Object maxDistance,
                            Object valueRaster)
                            throws IOException,
                                   AutomationException
    Calculates for each cell the Euclidean distance to the closest source.

    Remarks

    sourceData

    a Raster or feature dataset that identifies those cells or locations whose values are assigned to the output cell locations that they are closest to. For rasters, the input value type can be an integer type, string type, or floating point type if in_value_raster is used.

    [maxDistance]

    Defines the threshold that the Euclidean distance values cannot exceed. If a cell is farther than the [maxDistance], the output value for the cell location will be NoData. The default distance is to the edge of the output Raster. The data type for maxDistance can be either integer or floating point.

    [valueRaster]

    An input Raster that identifies the values to associate with the source cell locations. The source cells define the zones that will be used in the Euclidean distance calculations. The [valueRaster] is particularly important if the source Raster was created by the ILogicalOp::Test method or a Boolean operator that will only output 1 and 0, or if alternative values or zones are to be used instead of the existing ones on the source input. The data type for the valueRaster can be any Raster object that supports IGeoDataset (e.g., Raster, Raster band, etc.).

    Product Availability

    Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Spatial Analyst Extension.

    Supported Platforms

    Windows, Solaris, Linux

    Parameters:
    sourceData - A reference to a com.esri.arcgis.geodatabase.IGeoDataset (in)
    maxDistance - A Variant (in, optional, pass null if not required)
    valueRaster - A Variant (in, optional, pass null if not required)
    Returns:
    A reference to a com.esri.arcgis.geodatabase.IGeoDataset
    Throws:
    IOException - If there are interop problems.
    AutomationException - If the ArcObject component throws an exception.

    eucDistanceFull

    IGeoDataset eucDistanceFull(IGeoDataset sourceData,
                                boolean distance,
                                boolean direction,
                                boolean allocation,
                                Object maxDistance,
                                Object valueRaster)
                                throws IOException,
                                       AutomationException
    Calculates for each cell optionally the Euclidean distance, direction, and allocation to the closest source.

    Remarks

    sourceData

    a Raster or feature dataset that identifies those cells or locations whose values are assigned to the output cell locations that they are closest to. For rasters, the input value type can be an integer type, string type, or floating point type if in_value_raster is used.

    [distance]

    A Boolean and if True an output (Euclidean) distance Raster will be created. The distance Raster calculates for each cell the Euclidean distance to the closest source.

    [direction]

    a Boolean and if True an output (Euclidean) direction Raster will be created. The direction Raster contains the calculated direction in degrees each cell center is from the closest source cell center. The range of values is from 0° to 360°, with ‘0’ being reserved for the source cells. Due east (right) is 90 and the values increase clockwise (180, south; 270, west; and 360, north).

    [allocation]

    A Boolean and if True an output (Euclidean) allocation Raster will be created. For each cell, the allocation Raster identifies the zone of the closest source cell (in Euclidean distance)..

    [maxDistance]

    Defines the threshold that the Euclidean distance values cannot exceed. If a cell is farther than the [maxDistance], the output value for the cell location will be NoData. The default distance is to the edge of the output Raster. The data type for maxDistance can be either integer or floating point.

    [valueRaster]

    An input Raster that identifies the values to associate with the source cell locations. The source cells define the zones that will be used in the Euclidean distance calculations. The [valueRaster] is particularly important if the source Raster was created by the ILogicalOp::Test method or a Boolean operator that will only output 1 and 0, or if alternative values or zones are to be used instead of the existing ones on the source input. The data type for the valueRaster can be any Raster object that supports IGeoDataset (e.g., Raster, Raster band, etc.).

    Product Availability

    Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Spatial Analyst Extension.

    Supported Platforms

    Windows, Solaris, Linux

    Parameters:
    sourceData - A reference to a com.esri.arcgis.geodatabase.IGeoDataset (in)
    distance - The distance (in)
    direction - The direction (in)
    allocation - The allocation (in)
    maxDistance - A Variant (in, optional, pass null if not required)
    valueRaster - A Variant (in, optional, pass null if not required)
    Returns:
    A reference to a com.esri.arcgis.geodatabase.IGeoDataset
    Throws:
    IOException - If there are interop problems.
    AutomationException - If the ArcObject component throws an exception.

    eucAllocation

    IGeoDataset eucAllocation(IGeoDataset sourceData,
                              Object maxDistance,
                              Object valueRaster)
                              throws IOException,
                                     AutomationException
    Calculates for each cell the zone of the closest source cell (in Euclidean distance).

    Remarks

    sourceData

    a Raster or feature dataset that identifies those cells or locations whose values are assigned to the output cell locations that they are closest to. For rasters, the input value type can be an integer type, string type, or floating point type if in_value_raster is used.

    [maxDistance]

    defines the threshold that the Euclidean distance values cannot exceed. If a cell is farther than the [maxDistance], the output value for the cell location will be NoData. The default distance is to the edge of the output Raster. The data type for maxDistance can be either integer or floating point.

    [valueRaster]

    an input Raster that identifies the values to associate with the source cell locations. The source cells define the zones that will be used in the Euclidean allocation calculations. The [valueRaster] is particularly important if the source Raster was created by the ILogicalOp::TEST method or a Boolean method that will only output 1 and 0, or if alternative values or zones are to be used instead of the existing ones on the source input. The data type for the valueRaster can be any Raster object that supports IGeoDataset (e.g., Raster, Raster band, etc.).

    Product Availability

    Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Spatial Analyst Extension.

    Supported Platforms

    Windows, Solaris, Linux

    Parameters:
    sourceData - A reference to a com.esri.arcgis.geodatabase.IGeoDataset (in)
    maxDistance - A Variant (in, optional, pass null if not required)
    valueRaster - A Variant (in, optional, pass null if not required)
    Returns:
    A reference to a com.esri.arcgis.geodatabase.IGeoDataset
    Throws:
    IOException - If there are interop problems.
    AutomationException - If the ArcObject component throws an exception.

    eucDirection

    IGeoDataset eucDirection(IGeoDataset sourceData,
                             Object maxDistance,
                             Object valueRaster)
                             throws IOException,
                                    AutomationException
    Calculates the direction in degrees from each cell center to the cell center of the closest source.

    Remarks

    sourceData

    a Raster or feature dataset that identifies those cells or locations whose values are assigned to the output cell locations that they are closest to. For rasters, the input value type can be an integer type, string type, or floating point type if in_value_raster is used.

    [maxDistance]

    defines the threshold that the Euclidean distance values cannot exceed. If a cell is farther than the [maxDistance], the output value for the cell location will be NoData. The default distance is to the edge of the output Raster. The data type for maxDistance can be either integer or floating point.

    [valueRaster]

    an input Raster that identifies the values to associate with the source cell locations. The source cells define the zones that will be used in the Euclidean direction calculations. The [valueRaster] is particularly important if the source Raster was created by the ILogicalOp::TEST method or a Boolean operator that will only output 1 and 0, or if alternative values or zones are to be used instead of the existing ones on the source input. The data type for the valueRaster can be any Raster object that supports IGeoDataset (e.g., Raster, Raster band, etc.).

    Product Availability

    Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Spatial Analyst Extension.

    Supported Platforms

    Windows, Solaris, Linux

    Parameters:
    sourceData - A reference to a com.esri.arcgis.geodatabase.IGeoDataset (in)
    maxDistance - A Variant (in, optional, pass null if not required)
    valueRaster - A Variant (in, optional, pass null if not required)
    Returns:
    A reference to a com.esri.arcgis.geodatabase.IGeoDataset
    Throws:
    IOException - If there are interop problems.
    AutomationException - If the ArcObject component throws an exception.

    costDistance

    IGeoDataset costDistance(IGeoDataset sourceData,
                             IGeoDataset costRaster,
                             Object maxDistance,
                             Object valueRaster)
                             throws IOException,
                                    AutomationException
    Calculates for each cell the least-accumulative-cost distance over a cost surface to a source cell or a set of source cells.

    Remarks

    sourceData

    an input Raster, RasterDataset, RasterBand, or RasterDescriptor or Feature that identifies those cells or locations to which the least accumulated cost distances for every cell is calculated

    For Rasters, the input value types can be either integer, string or floating-point type if in_raster_value is used.

    costRaster

    an input Raster, RasterDataset, RasterBand, or RasterDescriptor defining the impedance or cost to move planimetrically through each cell

    The value at each cell location represents the cost per unit distance for moving through the cell. Each cell location value is multiplied by the cell resolution (while also compensating for diagonal movement) to obtain the total cost of passing through the cell. The values on the costRaster can be integer or floating point, but they cannot be negative (you cannot have a negative cost).

    [maxDistance]

    defines the threshold that the accumulative cost values cannot exceed

    If an accumulative cost distance value exceeds the maxDistance, the output value for the cell location will be NoData. The maxDistance defines the extent which the accumulative cost distances are calculated. If no maxDistance is specified the distance will be to the edge of the output raster. The data type for maxDistance can be either integer or floating point.

    [valueRaster]

    an optional input Raster that identifies the zone values that should be used for each cell on the sourceData

    The value defined by the valueRaster for each source cell will be assigned to all cells that will be allocated to the source cell in the cost allocation computations. If no valueRaster is specified, the zone value for a source cell is the value on the sourceData.

    This parameter is particularly important if the sourceRaster was created by the ILogicalOp::Test or a ILogicalOp::Boolean methods that will only output 1 and 0 or if alternative values or zones are to be used instead of the existing ones, on the input source. The data type for the valueRaster can be any Raster object that supports IGeoDataset (e.g., Raster, Raster band, etc.).

    Product Availability

    Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Spatial Analyst Extension.

    Supported Platforms

    Windows, Solaris, Linux

    Parameters:
    sourceData - A reference to a com.esri.arcgis.geodatabase.IGeoDataset (in)
    costRaster - A reference to a com.esri.arcgis.geodatabase.IGeoDataset (in)
    maxDistance - A Variant (in, optional, pass null if not required)
    valueRaster - A Variant (in, optional, pass null if not required)
    Returns:
    A reference to a com.esri.arcgis.geodatabase.IGeoDataset
    Throws:
    IOException - If there are interop problems.
    AutomationException - If the ArcObject component throws an exception.

    costAllocation

    IGeoDataset costAllocation(IGeoDataset sourceData,
                               IGeoDataset costRaster,
                               Object maxDistance,
                               Object valueRaster)
                               throws IOException,
                                      AutomationException
    Calculates for each output cell the zone that could be reached with the least accumulative cost.

    Remarks

    sourceData

    an input Raster, RasterDataset, RasterBand, or RasterDescriptor or Feature that identifies those cells or locations to which the least accumulated cost distances for every cell is calculated

    For Rasters, the input value types can be either integer, string or floating-point type if in_raster_value is used.

    costRaster

    an input Raster, RasterDataset, RasterBand, or RasterDescriptor defining the impedance or cost to move planimetrically through each cell

    The value at each cell location represents the cost per unit distance for moving through the cell. Each cell location value is multiplied by the cell resolution (while also compensating for diagonal movement) to obtain the total cost of passing through the cell. The values on the costRaster can be integer or floating point, but they cannot be negative (you cannot have a negative cost).

    [maxDistance]

    defines the threshold that the accumulative cost values cannot exceed

    If an accumulative cost distance value exceeds the maxDistance, the output value for the cell location will be NoData. The maxDistance defines the extent which the accumulative cost distances are calculated. If no maxDistance is specified the distance will be to the edge of the output raster. The data type for maxDistance can be either integer or floating point.

    [valueRaster]

    an optional input Raster that identifies the zone values that should be used for each cell on the sourceData

    The value defined by the valueRaster for each source cell will be assigned to all cells that will be allocated to the source cell in the cost allocation computations. If no valueRaster is specified, the zone value for a source cell is the value on the sourceData.

    This parameter is particularly important if the sourceRaster was created by the ILogicalOp::Test or a ILogicalOp::Boolean methods that will only output 1 and 0 or if alternative values or zones are to be used instead of the existing ones, on the input source. The data type for the valueRaster can be any Raster object that supports IGeoDataset (e.g., Raster, Raster band, etc.)

    Product Availability

    Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Spatial Analyst Extension.

    Supported Platforms

    Windows, Solaris, Linux

    Parameters:
    sourceData - A reference to a com.esri.arcgis.geodatabase.IGeoDataset (in)
    costRaster - A reference to a com.esri.arcgis.geodatabase.IGeoDataset (in)
    maxDistance - A Variant (in, optional, pass null if not required)
    valueRaster - A Variant (in, optional, pass null if not required)
    Returns:
    A reference to a com.esri.arcgis.geodatabase.IGeoDataset
    Throws:
    IOException - If there are interop problems.
    AutomationException - If the ArcObject component throws an exception.

    costBackLink

    IGeoDataset costBackLink(IGeoDataset sourceData,
                             IGeoDataset costRaster,
                             Object maxDistance,
                             Object valueRaster)
                             throws IOException,
                                    AutomationException
    Calculates the neighbor that is the next cell on the least-accumulative-cost path from a cell to a source cell.

    Remarks

    sourceData

    an input Raster, RasterDataset, RasterBand, or RasterDescriptor or Feature that identifies those cells or locations to which the least accumulated cost distances for every cell is calculated

    For Rasters, the input value types can be either integer, string or floating-point type if in_raster_value is used.

    costRaster

    an input Raster, RasterDataset, RasterBand, or RasterDescriptor defining the impedance or cost to move planimetrically through each cell

    The value at each cell location represents the cost per unit distance for moving through the cell. Each cell location value is multiplied by the cell resolution (while also compensating for diagonal movement) to obtain the total cost of passing through the cell. The values on the costRaster can be integer or floating point, but they cannot be negative (you cannot have a negative cost).

    [maxDistance]

    defines the threshold that the accumulative cost values cannot exceed

    If an accumulative cost distance value exceeds the maxDistance, the output value for the cell location will be NoData. The maxDistance defines the extent which the accumulative cost distances are calculated. If no maxDistance is specified the distance will be to the edge of the output raster. The data type for maxDistance can be either integer or floating point.

    [valueRaster]

    an optional input Raster that identifies the zone values that should be used for each cell on the sourceData

    The value defined by the valueRaster for each source cell will be assigned to all cells that will be allocated to the source cell in the cost allocation computations. If no valueRaster is specified, the zone value for a source cell is the value on the sourceData.

    This parameter is particularly important if the sourceRaster was created by the ILogicalOp::Test or a ILogicalOp::Boolean methods that will only output 1 and 0 or if alternative values or zones are to be used instead of the existing ones, on the input source. The data type for the valueRaster can be any Raster object that supports IGeoDataset (e.g., Raster, Raster band, etc.)

    Product Availability

    Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Spatial Analyst Extension.

    Supported Platforms

    Windows, Solaris, Linux

    Parameters:
    sourceData - A reference to a com.esri.arcgis.geodatabase.IGeoDataset (in)
    costRaster - A reference to a com.esri.arcgis.geodatabase.IGeoDataset (in)
    maxDistance - A Variant (in, optional, pass null if not required)
    valueRaster - A Variant (in, optional, pass null if not required)
    Returns:
    A reference to a com.esri.arcgis.geodatabase.IGeoDataset
    Throws:
    IOException - If there are interop problems.
    AutomationException - If the ArcObject component throws an exception.

    costDistanceFull

    IGeoDataset costDistanceFull(IGeoDataset sourceData,
                                 IGeoDataset costRaster,
                                 boolean distance,
                                 boolean backlink,
                                 boolean allocation,
                                 Object maxDistance,
                                 Object valueRaster)
                                 throws IOException,
                                        AutomationException
    Calculates for each cell the least-accumulative-cost distance, backlink, and allocation over a cost surface to a source cell or a set of source cells.

    Remarks

    sourceData

    an input Raster, RasterDataset, RasterBand, or RasterDescriptor or Feature that identifies those cells or locations to which the least accumulated cost distances for every cell is calculated

    For Rasters, the input value types can be either integer, string or floating-point type if in_raster_value is used.

    costRaster

    an input Raster, RasterDataset, RasterBand, or RasterDescriptor defining the impedance or cost to move planimetrically through each cell

    The value at each cell location represents the cost per unit distance for moving through the cell. Each cell location value is multiplied by the cell resolution (while also compensating for diagonal movement) to obtain the total cost of passing through the cell. The values on the costRaster can be integer or floating point, but they cannot be negative (you cannot have a negative cost).

    distance

    a Boolean that if True will create an output Raster that for each cell the least-accumulative-cost distance is calculated over a cost surface, the costRaster, to a source cell or a set of source cells specified in the sourceData

    backlink

    a Boolean that if True will create an output cost back link Raster

    The back link Raster contains values from 0 through 8, which defines the direction or identifies the next neighboring cell (the succeeding cell) along the least acaccumulative cost path from a cell to reach a source.

    If the path is to pass into the right neighbor, the cell will be assigned the value '1', '2' for the lower-right diagonal cell and continuing clockwise. The value '0' is reserved for source cells.

    allocation

    a Boolean that if True will create an output cost allocation Raster

    The cost allocation raster identifies, for each cell, which source would require the least accumulative cost to reach.

    [maxDistance]

    defines the threshold that the accumulative cost values cannot exceed

    If an accumulative cost distance value exceeds the maxDistance, the output value for the cell location will be NoData. The maxDistance defines the extent which the accumulative cost distances are calculated. If no maxDistance is specified the distance will be to the edge of the output raster. The data type for maxDistance can be either integer or floating point.

    [valueRaster]

    an optional input Raster that identifies the zone values that should be used for each cell on the sourceData

    The value defined by the valueRaster for each source cell will be assigned to all cells that will be allocated to the source cell in the cost allocation computations. If no valueRaster is specified, the zone value for a source cell is the value on the sourceData.

    This parameter is particularly important if the sourceRaster was created by the ILogicalOp::Test or a ILogicalOp::Boolean methods that will only output 1 and 0 or if alternative values or zones are to be used instead of the existing ones, on the input source. The data type for the valueRaster can be any Raster object that supports IGeoDataset (e.g., Raster, Raster band, etc.).

    Product Availability

    Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Spatial Analyst Extension.

    Supported Platforms

    Windows, Solaris, Linux

    Parameters:
    sourceData - A reference to a com.esri.arcgis.geodatabase.IGeoDataset (in)
    costRaster - A reference to a com.esri.arcgis.geodatabase.IGeoDataset (in)
    distance - The distance (in)
    backlink - The backlink (in)
    allocation - The allocation (in)
    maxDistance - A Variant (in, optional, pass null if not required)
    valueRaster - A Variant (in, optional, pass null if not required)
    Returns:
    A reference to a com.esri.arcgis.geodatabase.IGeoDataset
    Throws:
    IOException - If there are interop problems.
    AutomationException - If the ArcObject component throws an exception.

    corridor

    IGeoDataset corridor(IGeoDataset distance1,
                         IGeoDataset distance2)
                         throws IOException,
                                AutomationException
    Calculates for each cell location the sum of the accumulative costs for two input accumulative-cost datasets.

    Remarks

    distance1

    an input Raster which was the output accumulated cost Raster from the IDistance::CostDistance or other Cost methods

    distance2

    an input Raster which was the output accumulated cost Raster from the IDistance::CostDistance or other Cost methods

    Product Availability

    Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Spatial Analyst Extension.

    Supported Platforms

    Windows, Solaris, Linux

    Parameters:
    distance1 - A reference to a com.esri.arcgis.geodatabase.IGeoDataset (in)
    distance2 - A reference to a com.esri.arcgis.geodatabase.IGeoDataset (in)
    Returns:
    A reference to a com.esri.arcgis.geodatabase.IGeoDataset
    Throws:
    IOException - If there are interop problems.
    AutomationException - If the ArcObject component throws an exception.

    costPath

    IGeoDataset costPath(IGeoDataset fromData,
                         IGeoDataset distance,
                         IGeoDataset backlink,
                         int pathType)
                         throws IOException,
                                AutomationException
    Calculates the least-cost path(s) from selected cell(s) in the input data to the closest source cell.

    Remarks

    fromData

    a Raster or feature that identifies those cells or locations from which the least cost path is determined to the least costly source

    The Raster consists of cells which are to be considered in the IDistance::CostPath method calculations having valid values ('0' is a valid value), and the remaining cells must be assigned to NoData

    distance

    the name of a cost distance Raster to be used to determine the least cost path from the fromRaster cell locations to a source

    The distance Raster is usually created with the IDistanceOp::CostDistance method (or by the IDistanceOp::CostDistanceFull method). The distance Raster stores, for each cell, the minimum accumulative cost distance over a cost surface from each cell to a set of source cells.

    backlink

    the name of a cost back link Raster used to determine the path to return to a source via the least-cost path

    For each cell in the back link raster, a value identifies the neighbor that is the next cell on the least accumulative cost path from the cell to a single or set of source cells.

    pathType

    a parameter defining the manner in which the values and zones on the fromData will be interpreted in the cost path calculations

    There are three different esriGeoAnalysisPathEnum types:

    esriGeoAnalysisPathForEachCell

    For each cell with valid values on the fromData, a least-cost path is determined and saved on the output raster of the IDistance::CostPath method. With the for each cell parameter, each cell of the fromData input is treated separately, and a least-cost path is determined for each 'from' cell.

    esriGeoAnalysisPathForEachZone

    For each zone on the fromData, a single least-cost path is determined and saved on the output raster of the IDistance::CostPath method. With the for each zone parameter, for each zone, the least-cost path begins from the cell with the lowest cost distance weighting in the zone.

    esriGeoAnalysisPathForBestSingle

    For all cells on the fromData input, the least cost path is derived from the cell with the minimum of the least cost paths to source cells.

    Product Availability

    Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Spatial Analyst Extension.

    Supported Platforms

    Windows, Solaris, Linux

    Parameters:
    fromData - A reference to a com.esri.arcgis.geodatabase.IGeoDataset (in)
    distance - A reference to a com.esri.arcgis.geodatabase.IGeoDataset (in)
    backlink - A reference to a com.esri.arcgis.geodatabase.IGeoDataset (in)
    pathType - A com.esri.arcgis.spatialanalyst.esriGeoAnalysisPathEnum constant (in)
    Returns:
    A reference to a com.esri.arcgis.geodatabase.IGeoDataset
    Throws:
    IOException - If there are interop problems.
    AutomationException - If the ArcObject component throws an exception.

    costPathAsPolyline

    IGeometryCollection costPathAsPolyline(IPointCollection sourcePoints,
                                           IGeoDataset distance,
                                           IGeoDataset backlink)
                                           throws IOException,
                                                  AutomationException
    Calculates the least-cost path(s) from selected points in the input data and returns it as a polyline.

    Remarks

    sourcePoints

    input collection of points which identifies the destinations in which the least cost path is routed to

    distance

    the name of a cost distance Raster to be used to determine the least cost path from the fromRaster cell locations to a source.

    The distance Raster is usually created with the IDistanceOp::CostDistance method (or by the IDistanceOp::CostDistanceFull method). The distance Raster stores, for each cell, the minimum accumulative cost distance over a cost surface from each cell to a set of source cells.

    backlink

    the name of a cost back link Raster used to determine the path to return to a source via the least-cost path

    For each cell in the back link raster, a value identifies the neighbor that is the next cell on the least accumulative cost path from the cell to a single or set of source cells.

    Product Availability

    Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Spatial Analyst Extension.

    Supported Platforms

    Windows, Solaris, Linux

    Parameters:
    sourcePoints - A reference to a com.esri.arcgis.geometry.IPointCollection (in)
    distance - A reference to a com.esri.arcgis.geodatabase.IGeoDataset (in)
    backlink - A reference to a com.esri.arcgis.geodatabase.IGeoDataset (in)
    Returns:
    A reference to a com.esri.arcgis.geometry.IGeometryCollection
    Throws:
    IOException - If there are interop problems.
    AutomationException - If the ArcObject component throws an exception.

    pathDistance

    IGeoDataset pathDistance(IGeoDataset sourceData,
                             Object costRaster,
                             Object surfaceRaster,
                             Object horizRaster,
                             Object horizFactor,
                             Object vertRaster,
                             Object vertFactor,
                             Object maxDistance,
                             Object valueRaster)
                             throws IOException,
                                    AutomationException
    Calculates for each cell the least-accumulative-path distance over a path surface to a source cell or a set of source cells.

    Remarks

    sourceData

    An input Raster, RasterDataset, RasterBand, or RasterDescriptor that identifies those cells to which the least accumulated cost distances for every cell is calculated

    The input value types can be either integer, string type or floating-point type

    [costRaster]

    An input Raster, RasterDataset, RasterBand, or RasterDescriptor defining the impedance or cost to move planimetrically through each cell

    The value at each cell location represents the cost per unit distance for moving through the cell. Each cell location value is multiplied by the cell resolution (while also compensating for diagonal movement) to obtain the total cost of passing through the cell. The values on the costRaster can be integer or floating point, but they cannot be negative (you cannot have a negative cost).

    [surfaceRaster]

    A raster identifying the z values at each cell location." " The values are used to calculate the actual surface distance that will be covered when passing between cells.

    [horizRaster]

    A raster defining the horizontal direction at each cell

    [horizFactor]

    Defines the relationship between the horizontal cost factor and the horizontal relative moving angle (HRMA)." " The input parameter may be one of several keywords (and modifiers) identifying a defined horizontal factor graph or an ASCII file that creates a custom graph. The graphs are used to identify the horizontal factor that will be used in calculating the total cost for moving into a neighboring cell. If the parameter is used with any modifier, the string must be double quoted.

    The format for the horizontal parameter is:

    "keyword {modifier_1 ... modifier_n}"

    Spaces must be used to separate the keyword and modifiers.

    The format for the horizontal parameter modifiers is:

    modifier_name=value or table_name

    There is an equal sign (=) between the modifier name and its value, but there are no spaces between any of the three.

    If no keyword is specified, the default horizontal parameter is BINARY.

    Two acronyms are used in the explanations of the horizontal factor keywords and modifiers:

    HF stands for the horizontal factor defining the horizontal difficulty that is encountered in moving from one cell to the next.

    HRMA stands for the horizontal relative moving angle, which identifies the angle between the horizontal direction from a cell and the moving direction.

    Horizontal-factor keywords

    BINARY - indicates that if the HRMA is less than the cut angle, the HF is set to the value associated with the zerofactor; otherwise, it is infinity.

    FORWARD - establishes that only forward movement is allowed. The HRMA must be greater or equal to 0 and less than 90 (0 <= HRMA < 90). If the HRMA is greater than 0 and less than 45 degrees, the HF for the cell is set to the value associated with the zerofactor. If the HRMA is greater than or equal to 45 degrees, then the side value modifier value is used. The HF for any HRMA equal to or greater than 90 degrees is set to infinity.

    LINEAR - defines that the HF is a linear function of the HRMA.

    INVERSE_LINEAR - specifies that the HF is an inverse linear function of the HRMA.

    TABLE - identifies that an ASCII file will be used to define the horizontal-factor graph used to determine the HFs. The name of the table is entered as a modifier after a blank space following the keyword.

    Modifiers to the horizontal keywords

    ZEROFACTOR - establishes the horizontal factor to be used when the HRMA is 0. This factor positions the y-intercept for any of the horizontal-factor functions.

    CUTANGLE - defines the HRMA angle beyond which the HF will be set to infinity.

    SLOPE - establishes the slope of the straight line used with the LINEAR and INVERSE_LINEAR horizontal-factor keywords. The slope is specified as a fraction of rise over run (i.e., 45 percent slope is 1/45, which is input as 0.02222).

    SIDEVALUE - establishes the HF when the HRMA is greater than or equal to 45 degrees and less than 90 degrees for the FORWARD horizontal-factor keyword that is specified.

    table_name - identifies the name of the ASCII table defining the HF. It is used in conjunction with the TABLE horizontal-factor keyword.

    Default Values for Horizontal Factor Modifiers

    
    Keywords         Zerofactor          Cutangle          Slope          Sidevalue
    
    Binary               1.0                 45              -                -
    
    Forward              0.5                 45(fixed)       -               1.0
    
    Linear               0.5                 181            1/90              -
    
    Inverse_linear       2.0                 180           -1/90              -
    
    

    [vertRaster]

    A raster defining the z value for each cell

    [vertFactor]

    Defines the relationship between the vertical cost factor and the vertical relative moving angle (VRMA)
    The input parameter may be one of several keywords (and modifiers) identifying a defined vertical factor graph or an ASCII file creating a custom graph. The graphs are used to identify the vertical factor that will be used in calculating the total cost for moving into a neighboring cell. If the parameter is used with any modifier, the string must be double quoted. The format for the vertical parameter is:

    "keyword {modifier_1 ... modifier_n}"

    Spaces must be used to separate the keyword and modifiers.

    The format for the vertical parameter modifiers is:

    modifier_name=value or table_name

    There is an equal sign (=) between the modifier name and its value, but there are no spaces between any of the three.

    If no keyword is specified, the default vertical parameter is SEC.

    Two acronyms are used in the explanations of the vertical-factor keywords and modifiers:

    VF stands for the vertical factor defining the vertical difficulty that is encountered moving from one cell to the next.
    VRMA stands for the vertical relative moving angle, which identifies the slope angle between the FROM or processing cell and the TO cell.

    Vertical-factor keywords

    BINARY - specifies that if the VRMA is greater than the low-cut angle and less than the high-cut angle then the VF is set to the value associated with the zerofactor; otherwise, it is infinity.

    LINEAR - indicates that the VF is a linear function of the VRMA.

    SYM_LINEAR - defines that the VF is a linear function of the VRMA in either the negative or positive side of the VRMA, respectively, and the two linear functions are symmetrical with respect to the VF (y) axis.

    INVERSE_LINEAR - indicates that the VF is an inverse linear function of the VRMA.

    SYM_INVERSE_LINEAR - identifies that the VF is an inverse linear function of the VRMA in either the negative or positive side of the VRMA, respectively, and the two linear functions are symmetrical with respect to the VF (y) axis.

    COS - defines the VF as the cosine-based function of the VRMA.

    SEC - identifies the VF as the secant-based function of the VRMA.

    COS-SEC - indicates that the VF is the cosine-based function of the VRMA when the VRMA is negative and the secant-based function of the VRMA when the VRMA is nonnegative.

    SEC-COS - specifies that the VF is the secant-based function of the VRMA when the VRMA is negative and the cosine-based function of the VRMA when the VRMA is nonnegative.

    TABLE - identifies that an ASCII file will be used to define the VFs. The name of the table is entered as a modifier after a blank space following the keyword.

    Modifiers to the vertical-factor keywords

    ZEROFACTOR - establishes the vertical factor to be used when the VRMA is 0. This factor positions the y-intercept of the specified function. By definition, the zerofactor is not applicable to any of the trigonometric vertical functions (COS, SEC, COS_SEC, or SEC_COS). The y-intercept is defined by these functions.

    LCUTANGLE - defines the VRMA angle below which the VF will be set to infinity.

    HCUTANGLE - defines the VRMA angle above which the VF will be set to infinity.

    SLOPE - establishes the slope of the straight line used with the LINEAR and INVERSE_LINEAR vertical-factor keyword. The slope is specified as a fraction of rise over run (e.g., 45 percent slope is 1/45, which is input as 0.02222).

    table_name - identifies the name of the ASCII file defining the VF. It is used in conjunction with the TABLE vertical-factor keyword.

    Default Values for Vertical Factor Modifiers

    
    Keywords                    Zerofactor     Lcutangle     Hcutangle     Slope     Cospower     Secpower
    
    Binary                          1.0           -30            30          -           -           -
    
    Linear                          1.0           -90            90         1/90         -           -
    
    Sym_linear                      1.0           -90            90         1/90         -           -
    
    Inverse_linear                  1.0           -45            45        -1/45         -           -
    
    Sym_inverse_linear              1.0           -45            45        -1/44         -           - 
    
    Cos                              -            -90            90          -          1.0          - 
    
    Sec                              -            -90            90          -           -          1.0
    
    Cos_sec                          -            -90            90          -          1.0         1.0
    
    Sec_cos                          -            -90            90          -          1.0         1.0
    
    

    [maxDistance]

    Defines the threshold that the accumulative cost values cannot exceed

    If an accumulative cost distance value exceeds the maxDistance, the output value for the cell location will be NoData. The maxDistance defines the extent which the accumulative cost distances are calculated. If no maxDistance is specified the distance will be to the edge of the output raster. The data type for maxDistance can be either integer or floating point.

    [valueRaster]

    An optional input Raster that identifies the zone values that should be used for each cell on the sourceData

    The value defined by the valueRaster for each source cell will be assigned to all cells that will be allocated to the source cell in the cost allocation computations. If no valueRaster is specified, the zone value for a source cell is the value on the sourceData.

    This parameter is particularly important if the sourceRaster was created by the ILogicalOp::Test or a ILogicalOp::Boolean methods that will only output 1 and 0 or if alternative values or zones are to be used instead of the existing ones, on the input source. The data type for the valueRaster can be any Raster object that supports IGeoDataset (e.g., Raster, Raster band, etc.)

    Product Availability

    Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Spatial Analyst Extension.

    Supported Platforms

    Windows, Solaris, Linux

    Parameters:
    sourceData - A reference to a com.esri.arcgis.geodatabase.IGeoDataset (in)
    costRaster - A Variant (in, optional, pass null if not required)
    surfaceRaster - A Variant (in, optional, pass null if not required)
    horizRaster - A Variant (in, optional, pass null if not required)
    horizFactor - A Variant (in, optional, pass null if not required)
    vertRaster - A Variant (in, optional, pass null if not required)
    vertFactor - A Variant (in, optional, pass null if not required)
    maxDistance - A Variant (in, optional, pass null if not required)
    valueRaster - A Variant (in, optional, pass null if not required)
    Returns:
    A reference to a com.esri.arcgis.geodatabase.IGeoDataset
    Throws:
    IOException - If there are interop problems.
    AutomationException - If the ArcObject component throws an exception.

    pathAllocation

    IGeoDataset pathAllocation(IGeoDataset sourceData,
                               Object costRaster,
                               Object surfaceRaster,
                               Object horizRaster,
                               Object horizFactor,
                               Object vertRaster,
                               Object vertFactor,
                               Object maxDistance,
                               Object valueRaster)
                               throws IOException,
                                      AutomationException
    Calculates for each output cell the zone that could be reached with the least accumulative cost.

    Remarks

    sourceData

    An input Raster, RasterDataset, RasterBand, or RasterDescriptor that identifies those cells to which the least accumulated cost distances for every cell is calculated

    The input value types can be either integer, string type or floating-point type

    [costRaster]

    An input Raster, RasterDataset, RasterBand, or RasterDescriptor defining the impedance or cost to move planimetrically through each cell

    The value at each cell location represents the cost per unit distance for moving through the cell. Each cell location value is multiplied by the cell resolution (while also compensating for diagonal movement) to obtain the total cost of passing through the cell. The values on the costRaster can be integer or floating point, but they cannot be negative (you cannot have a negative cost).

    [surfaceRaster]

    A raster identifying the z values at each cell location." " The values are used to calculate the actual surface distance that will be covered when passing between cells.

    [horizRaster]

    A raster defining the horizontal direction at each cell

    [horizFactor]

    Defines the relationship between the horizontal cost factor and the horizontal relative moving angle (HRMA)." " The input parameter may be one of several keywords (and modifiers) identifying a defined horizontal factor graph or an ASCII file that creates a custom graph. The graphs are used to identify the horizontal factor that will be used in calculating the total cost for moving into a neighboring cell. If the parameter is used with any modifier, the string must be double quoted.

    The format for the horizontal parameter is:

    "keyword {modifier_1 ... modifier_n}"

    Spaces must be used to separate the keyword and modifiers.

    The format for the horizontal parameter modifiers is:

    modifier_name=value or table_name

    There is an equal sign (=) between the modifier name and its value, but there are no spaces between any of the three.

    If no keyword is specified, the default horizontal parameter is BINARY.

    Two acronyms are used in the explanations of the horizontal factor keywords and modifiers:

    HF stands for the horizontal factor defining the horizontal difficulty that is encountered in moving from one cell to the next.

    HRMA stands for the horizontal relative moving angle, which identifies the angle between the horizontal direction from a cell and the moving direction.

    Horizontal-factor keywords

    BINARY - indicates that if the HRMA is less than the cut angle, the HF is set to the value associated with the zerofactor; otherwise, it is infinity.

    FORWARD - establishes that only forward movement is allowed. The HRMA must be greater or equal to 0 and less than 90 (0 <= HRMA < 90). If the HRMA is greater than 0 and less than 45 degrees, the HF for the cell is set to the value associated with the zerofactor. If the HRMA is greater than or equal to 45 degrees, then the side value modifier value is used. The HF for any HRMA equal to or greater than 90 degrees is set to infinity.

    LINEAR - defines that the HF is a linear function of the HRMA.

    INVERSE_LINEAR - specifies that the HF is an inverse linear function of the HRMA.

    TABLE - identifies that an ASCII file will be used to define the horizontal-factor graph used to determine the HFs. The name of the table is entered as a modifier after a blank space following the keyword.

    Modifiers to the horizontal keywords

    ZEROFACTOR - establishes the horizontal factor to be used when the HRMA is 0. This factor positions the y-intercept for any of the horizontal-factor functions.

    CUTANGLE - defines the HRMA angle beyond which the HF will be set to infinity.

    SLOPE - establishes the slope of the straight line used with the LINEAR and INVERSE_LINEAR horizontal-factor keywords. The slope is specified as a fraction of rise over run (i.e., 45 percent slope is 1/45, which is input as 0.02222).

    SIDEVALUE - establishes the HF when the HRMA is greater than or equal to 45 degrees and less than 90 degrees for the FORWARD horizontal-factor keyword that is specified.

    table_name - identifies the name of the ASCII table defining the HF. It is used in conjunction with the TABLE horizontal-factor keyword.

    Default Values for Horizontal Factor Modifiers

    
    Keywords         Zerofactor          Cutangle          Slope          Sidevalue
    
    Binary               1.0                 45              -                -
    
    Forward              0.5                 45(fixed)       -               1.0
    
    Linear               0.5                 181            1/90              -
    
    Inverse_linear       2.0                 180           -1/90              -
    
    

    [vertRaster]

    A raster defining the z value for each cell

    [vertFactor]

    Defines the relationship between the vertical cost factor and the vertical relative moving angle (VRMA)
    The input parameter may be one of several keywords (and modifiers) identifying a defined vertical factor graph or an ASCII file creating a custom graph. The graphs are used to identify the vertical factor that will be used in calculating the total cost for moving into a neighboring cell. If the parameter is used with any modifier, the string must be double quoted. The format for the vertical parameter is:

    "keyword {modifier_1 ... modifier_n}"

    Spaces must be used to separate the keyword and modifiers.

    The format for the vertical parameter modifiers is:

    modifier_name=value or table_name

    There is an equal sign (=) between the modifier name and its value, but there are no spaces between any of the three.

    If no keyword is specified, the default vertical parameter is SEC.

    Two acronyms are used in the explanations of the vertical-factor keywords and modifiers:

    VF stands for the vertical factor defining the vertical difficulty that is encountered moving from one cell to the next.
    VRMA stands for the vertical relative moving angle, which identifies the slope angle between the FROM or processing cell and the TO cell.

    Vertical-factor keywords

    BINARY - specifies that if the VRMA is greater than the low-cut angle and less than the high-cut angle then the VF is set to the value associated with the zerofactor; otherwise, it is infinity.

    LINEAR - indicates that the VF is a linear function of the VRMA.

    SYM_LINEAR - defines that the VF is a linear function of the VRMA in either the negative or positive side of the VRMA, respectively, and the two linear functions are symmetrical with respect to the VF (y) axis.

    INVERSE_LINEAR - indicates that the VF is an inverse linear function of the VRMA.

    SYM_INVERSE_LINEAR - identifies that the VF is an inverse linear function of the VRMA in either the negative or positive side of the VRMA, respectively, and the two linear functions are symmetrical with respect to the VF (y) axis.

    COS - defines the VF as the cosine-based function of the VRMA.

    SEC - identifies the VF as the secant-based function of the VRMA.

    COS-SEC - indicates that the VF is the cosine-based function of the VRMA when the VRMA is negative and the secant-based function of the VRMA when the VRMA is nonnegative.

    SEC-COS - specifies that the VF is the secant-based function of the VRMA when the VRMA is negative and the cosine-based function of the VRMA when the VRMA is nonnegative.

    TABLE - identifies that an ASCII file will be used to define the VFs. The name of the table is entered as a modifier after a blank space following the keyword.

    Modifiers to the vertical-factor keywords

    ZEROFACTOR - establishes the vertical factor to be used when the VRMA is 0. This factor positions the y-intercept of the specified function. By definition, the zerofactor is not applicable to any of the trigonometric vertical functions (COS, SEC, COS_SEC, or SEC_COS). The y-intercept is defined by these functions.

    LCUTANGLE - defines the VRMA angle below which the VF will be set to infinity.

    HCUTANGLE - defines the VRMA angle above which the VF will be set to infinity.

    SLOPE - establishes the slope of the straight line used with the LINEAR and INVERSE_LINEAR vertical-factor keyword. The slope is specified as a fraction of rise over run (e.g., 45 percent slope is 1/45, which is input as 0.02222).

    table_name - identifies the name of the ASCII file defining the VF. It is used in conjunction with the TABLE vertical-factor keyword.

    Default Values for Vertical Factor Modifiers

    
    Keywords                    Zerofactor     Lcutangle     Hcutangle     Slope     Cospower     Secpower
    
    Binary                          1.0           -30            30          -           -           -
    
    Linear                          1.0           -90            90         1/90         -           -
    
    Sym_linear                      1.0           -90            90         1/90         -           -
    
    Inverse_linear                  1.0           -45            45        -1/45         -           -
    
    Sym_inverse_linear              1.0           -45            45        -1/44         -           - 
    
    Cos                              -            -90            90          -          1.0          - 
    
    Sec                              -            -90            90          -           -          1.0
    
    Cos_sec                          -            -90            90          -          1.0         1.0
    
    Sec_cos                          -            -90            90          -          1.0         1.0
    
    

    [maxDistance]

    Defines the threshold that the accumulative cost values cannot exceed

    If an accumulative cost distance value exceeds the maxDistance, the output value for the cell location will be NoData. The maxDistance defines the extent which the accumulative cost distances are calculated. If no maxDistance is specified the distance will be to the edge of the output raster. The data type for maxDistance can be either integer or floating point.

    [valueRaster]

    An optional input Raster that identifies the zone values that should be used for each cell on the sourceData

    The value defined by the valueRaster for each source cell will be assigned to all cells that will be allocated to the source cell in the cost allocation computations. If no valueRaster is specified, the zone value for a source cell is the value on the sourceData.

    This parameter is particularly important if the sourceRaster was created by the ILogicalOp::Test or a ILogicalOp::Boolean methods that will only output 1 and 0 or if alternative values or zones are to be used instead of the existing ones, on the input source. The data type for the valueRaster can be any Raster object that supports IGeoDataset (e.g., Raster, Raster band, etc.)

    Product Availability

    Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Spatial Analyst Extension.

    Supported Platforms

    Windows, Solaris, Linux

    Parameters:
    sourceData - A reference to a com.esri.arcgis.geodatabase.IGeoDataset (in)
    costRaster - A Variant (in, optional, pass null if not required)
    surfaceRaster - A Variant (in, optional, pass null if not required)
    horizRaster - A Variant (in, optional, pass null if not required)
    horizFactor - A Variant (in, optional, pass null if not required)
    vertRaster - A Variant (in, optional, pass null if not required)
    vertFactor - A Variant (in, optional, pass null if not required)
    maxDistance - A Variant (in, optional, pass null if not required)
    valueRaster - A Variant (in, optional, pass null if not required)
    Returns:
    A reference to a com.esri.arcgis.geodatabase.IGeoDataset
    Throws:
    IOException - If there are interop problems.
    AutomationException - If the ArcObject component throws an exception.

    pathBackLink

    IGeoDataset pathBackLink(IGeoDataset sourceData,
                             Object costRaster,
                             Object surfaceRaster,
                             Object horizRaster,
                             Object horizFactor,
                             Object vertRaster,
                             Object vertFactor,
                             Object maxDistance,
                             Object valueRaster)
                             throws IOException,
                                    AutomationException
    Calculates the neighbor that is the next cell on the least-accumulative-path path from a cell to a source cell.

    Remarks

    sourceData

    An input Raster, RasterDataset, RasterBand, or RasterDescriptor that identifies those cells to which the least accumulated cost distances for every cell is calculated

    The input value types can be either integer, string type or floating-point type

    [costRaster]

    An input Raster, RasterDataset, RasterBand, or RasterDescriptor defining the impedance or cost to move planimetrically through each cell

    The value at each cell location represents the cost per unit distance for moving through the cell. Each cell location value is multiplied by the cell resolution (while also compensating for diagonal movement) to obtain the total cost of passing through the cell. The values on the costRaster can be integer or floating point, but they cannot be negative (you cannot have a negative cost).

    [surfaceRaster]

    A raster identifying the z values at each cell location." " The values are used to calculate the actual surface distance that will be covered when passing between cells.

    [horizRaster]

    A raster defining the horizontal direction at each cell

    [horizFactor]

    Defines the relationship between the horizontal cost factor and the horizontal relative moving angle (HRMA)." " The input parameter may be one of several keywords (and modifiers) identifying a defined horizontal factor graph or an ASCII file that creates a custom graph. The graphs are used to identify the horizontal factor that will be used in calculating the total cost for moving into a neighboring cell. If the parameter is used with any modifier, the string must be double quoted.

    The format for the horizontal parameter is:

    "keyword {modifier_1 ... modifier_n}"

    Spaces must be used to separate the keyword and modifiers.

    The format for the horizontal parameter modifiers is:

    modifier_name=value or table_name

    There is an equal sign (=) between the modifier name and its value, but there are no spaces between any of the three.

    If no keyword is specified, the default horizontal parameter is BINARY.

    Two acronyms are used in the explanations of the horizontal factor keywords and modifiers:

    HF stands for the horizontal factor defining the horizontal difficulty that is encountered in moving from one cell to the next.

    HRMA stands for the horizontal relative moving angle, which identifies the angle between the horizontal direction from a cell and the moving direction.

    Horizontal-factor keywords

    BINARY - indicates that if the HRMA is less than the cut angle, the HF is set to the value associated with the zerofactor; otherwise, it is infinity.

    FORWARD - establishes that only forward movement is allowed. The HRMA must be greater or equal to 0 and less than 90 (0 <= HRMA < 90). If the HRMA is greater than 0 and less than 45 degrees, the HF for the cell is set to the value associated with the zerofactor. If the HRMA is greater than or equal to 45 degrees, then the side value modifier value is used. The HF for any HRMA equal to or greater than 90 degrees is set to infinity.

    LINEAR - defines that the HF is a linear function of the HRMA.

    INVERSE_LINEAR - specifies that the HF is an inverse linear function of the HRMA.

    TABLE - identifies that an ASCII file will be used to define the horizontal-factor graph used to determine the HFs. The name of the table is entered as a modifier after a blank space following the keyword.

    Modifiers to the horizontal keywords

    ZEROFACTOR - establishes the horizontal factor to be used when the HRMA is 0. This factor positions the y-intercept for any of the horizontal-factor functions.

    CUTANGLE - defines the HRMA angle beyond which the HF will be set to infinity.

    SLOPE - establishes the slope of the straight line used with the LINEAR and INVERSE_LINEAR horizontal-factor keywords. The slope is specified as a fraction of rise over run (i.e., 45 percent slope is 1/45, which is input as 0.02222).

    SIDEVALUE - establishes the HF when the HRMA is greater than or equal to 45 degrees and less than 90 degrees for the FORWARD horizontal-factor keyword that is specified.

    table_name - identifies the name of the ASCII table defining the HF. It is used in conjunction with the TABLE horizontal-factor keyword.

    Default Values for Horizontal Factor Modifiers

    
    Keywords         Zerofactor          Cutangle          Slope          Sidevalue
    
    Binary               1.0                 45              -                -
    
    Forward              0.5                 45(fixed)       -               1.0
    
    Linear               0.5                 181            1/90              -
    
    Inverse_linear       2.0                 180           -1/90              -
    
    

    [vertRaster]

    A raster defining the z value for each cell

    [vertFactor]

    Defines the relationship between the vertical cost factor and the vertical relative moving angle (VRMA)
    The input parameter may be one of several keywords (and modifiers) identifying a defined vertical factor graph or an ASCII file creating a custom graph. The graphs are used to identify the vertical factor that will be used in calculating the total cost for moving into a neighboring cell. If the parameter is used with any modifier, the string must be double quoted. The format for the vertical parameter is:

    "keyword {modifier_1 ... modifier_n}"

    Spaces must be used to separate the keyword and modifiers.

    The format for the vertical parameter modifiers is:

    modifier_name=value or table_name

    There is an equal sign (=) between the modifier name and its value, but there are no spaces between any of the three.

    If no keyword is specified, the default vertical parameter is SEC.

    Two acronyms are used in the explanations of the vertical-factor keywords and modifiers:

    VF stands for the vertical factor defining the vertical difficulty that is encountered moving from one cell to the next.
    VRMA stands for the vertical relative moving angle, which identifies the slope angle between the FROM or processing cell and the TO cell.

    Vertical-factor keywords

    BINARY - specifies that if the VRMA is greater than the low-cut angle and less than the high-cut angle then the VF is set to the value associated with the zerofactor; otherwise, it is infinity.

    LINEAR - indicates that the VF is a linear function of the VRMA.

    SYM_LINEAR - defines that the VF is a linear function of the VRMA in either the negative or positive side of the VRMA, respectively, and the two linear functions are symmetrical with respect to the VF (y) axis.

    INVERSE_LINEAR - indicates that the VF is an inverse linear function of the VRMA.

    SYM_INVERSE_LINEAR - identifies that the VF is an inverse linear function of the VRMA in either the negative or positive side of the VRMA, respectively, and the two linear functions are symmetrical with respect to the VF (y) axis.

    COS - defines the VF as the cosine-based function of the VRMA.

    SEC - identifies the VF as the secant-based function of the VRMA.

    COS-SEC - indicates that the VF is the cosine-based function of the VRMA when the VRMA is negative and the secant-based function of the VRMA when the VRMA is nonnegative.

    SEC-COS - specifies that the VF is the secant-based function of the VRMA when the VRMA is negative and the cosine-based function of the VRMA when the VRMA is nonnegative.

    TABLE - identifies that an ASCII file will be used to define the VFs. The name of the table is entered as a modifier after a blank space following the keyword.

    Modifiers to the vertical-factor keywords

    ZEROFACTOR - establishes the vertical factor to be used when the VRMA is 0. This factor positions the y-intercept of the specified function. By definition, the zerofactor is not applicable to any of the trigonometric vertical functions (COS, SEC, COS_SEC, or SEC_COS). The y-intercept is defined by these functions.

    LCUTANGLE - defines the VRMA angle below which the VF will be set to infinity.

    HCUTANGLE - defines the VRMA angle above which the VF will be set to infinity.

    SLOPE - establishes the slope of the straight line used with the LINEAR and INVERSE_LINEAR vertical-factor keyword. The slope is specified as a fraction of rise over run (e.g., 45 percent slope is 1/45, which is input as 0.02222).

    table_name - identifies the name of the ASCII file defining the VF. It is used in conjunction with the TABLE vertical-factor keyword.

    Default Values for Vertical Factor Modifiers

    
    Keywords                    Zerofactor     Lcutangle     Hcutangle     Slope     Cospower     Secpower
    
    Binary                          1.0           -30            30          -           -           -
    
    Linear                          1.0           -90            90         1/90         -           -
    
    Sym_linear                      1.0           -90            90         1/90         -           -
    
    Inverse_linear                  1.0           -45            45        -1/45         -           -
    
    Sym_inverse_linear              1.0           -45            45        -1/44         -           - 
    
    Cos                              -            -90            90          -          1.0          - 
    
    Sec                              -            -90            90          -           -          1.0
    
    Cos_sec                          -            -90            90          -          1.0         1.0
    
    Sec_cos                          -            -90            90          -          1.0         1.0
    
    

    [maxDistance]

    Defines the threshold that the accumulative cost values cannot exceed

    If an accumulative cost distance value exceeds the maxDistance, the output value for the cell location will be NoData. The maxDistance defines the extent which the accumulative cost distances are calculated. If no maxDistance is specified the distance will be to the edge of the output raster. The data type for maxDistance can be either integer or floating point.

    [valueRaster]

    An optional input Raster that identifies the zone values that should be used for each cell on the sourceData

    The value defined by the valueRaster for each source cell will be assigned to all cells that will be allocated to the source cell in the cost allocation computations. If no valueRaster is specified, the zone value for a source cell is the value on the sourceData.

    This parameter is particularly important if the sourceRaster was created by the ILogicalOp::Test or a ILogicalOp::Boolean methods that will only output 1 and 0 or if alternative values or zones are to be used instead of the existing ones, on the input source. The data type for the valueRaster can be any Raster object that supports IGeoDataset (e.g., Raster, Raster band, etc.)

    Product Availability

    Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Spatial Analyst Extension.

    Supported Platforms

    Windows, Solaris, Linux

    Parameters:
    sourceData - A reference to a com.esri.arcgis.geodatabase.IGeoDataset (in)
    costRaster - A Variant (in, optional, pass null if not required)
    surfaceRaster - A Variant (in, optional, pass null if not required)
    horizRaster - A Variant (in, optional, pass null if not required)
    horizFactor - A Variant (in, optional, pass null if not required)
    vertRaster - A Variant (in, optional, pass null if not required)
    vertFactor - A Variant (in, optional, pass null if not required)
    maxDistance - A Variant (in, optional, pass null if not required)
    valueRaster - A Variant (in, optional, pass null if not required)
    Returns:
    A reference to a com.esri.arcgis.geodatabase.IGeoDataset
    Throws:
    IOException - If there are interop problems.
    AutomationException - If the ArcObject component throws an exception.

    pathDistanceFull

    IGeoDataset pathDistanceFull(IGeoDataset sourceData,
                                 boolean distance,
                                 boolean backlink,
                                 boolean allocation,
                                 Object costRaster,
                                 Object surfaceRaster,
                                 Object horizRaster,
                                 Object horizFactor,
                                 Object vertRaster,
                                 Object vertFactor,
                                 Object maxDistance,
                                 Object valueRaster)
                                 throws IOException,
                                        AutomationException
    Calculates for each cell the least-accumulative-cost distance, backlink, and allocation over a cost surface to a source cell or a set of source cells.

    Remarks

    sourceData

    An input Raster, RasterDataset, RasterBand, or RasterDescriptor that identifies those cells to which the least accumulated cost distances for every cell is calculated

    The input value types can be either integer, string type or floating-point type

    distance

    a Boolean that if True will create an output Raster that for each cell the least-accumulative-cost distance is calculated over a cost surface, the costRaster, to a source cell or a set of source cells specified in the sourceData

    backlink

    a Boolean that if True will create an output cost back link Raster

    The back link Raster contains values from 0 through 8, which defines the direction or identifies the next neighboring cell (the succeeding cell) along the least acaccumulative cost path from a cell to reach a source.

    If the path is to pass into the right neighbor, the cell will be assigned the value '1', '2' for the lower-right diagonal cell and continuing clockwise. The value '0' is reserved for source cells.

    allocation

    a Boolean that if True will create an output cost allocation Raster.

    The cost allocation raster identifies, for each, cell, which source would require the least accumulative cost to reach.

    [costRaster]

    An input Raster, RasterDataset, RasterBand, or RasterDescriptor defining the impedance or cost to move planimetrically through each cell

    The value at each cell location represents the cost per unit distance for moving through the cell. Each cell location value is multiplied by the cell resolution (while also compensating for diagonal movement) to obtain the total cost of passing through the cell. The values on the costRaster can be integer or floating point, but they cannot be negative (you cannot have a negative cost).

    [surfaceRaster]

    A raster identifying the z values at each cell location." " The values are used to calculate the actual surface distance that will be covered when passing between cells.

    [horizRaster]

    A raster defining the horizontal direction at each cell

    [horizFactor]

    Defines the relationship between the horizontal cost factor and the horizontal relative moving angle (HRMA)." " The input parameter may be one of several keywords (and modifiers) identifying a defined horizontal factor graph or an ASCII file that creates a custom graph. The graphs are used to identify the horizontal factor that will be used in calculating the total cost for moving into a neighboring cell. If the parameter is used with any modifier, the string must be double quoted.

    The format for the horizontal parameter is:

    "keyword {modifier_1 ... modifier_n}"

    Spaces must be used to separate the keyword and modifiers.

    The format for the horizontal parameter modifiers is:

    modifier_name=value or table_name

    There is an equal sign (=) between the modifier name and its value, but there are no spaces between any of the three.

    If no keyword is specified, the default horizontal parameter is BINARY.

    Two acronyms are used in the explanations of the horizontal factor keywords and modifiers:

    HF stands for the horizontal factor defining the horizontal difficulty that is encountered in moving from one cell to the next.

    HRMA stands for the horizontal relative moving angle, which identifies the angle between the horizontal direction from a cell and the moving direction.

    Horizontal-factor keywords

    BINARY - indicates that if the HRMA is less than the cut angle, the HF is set to the value associated with the zerofactor; otherwise, it is infinity.

    FORWARD - establishes that only forward movement is allowed. The HRMA must be greater or equal to 0 and less than 90 (0 <= HRMA < 90). If the HRMA is greater than 0 and less than 45 degrees, the HF for the cell is set to the value associated with the zerofactor. If the HRMA is greater than or equal to 45 degrees, then the side value modifier value is used. The HF for any HRMA equal to or greater than 90 degrees is set to infinity.

    LINEAR - defines that the HF is a linear function of the HRMA.

    INVERSE_LINEAR - specifies that the HF is an inverse linear function of the HRMA.

    TABLE - identifies that an ASCII file will be used to define the horizontal-factor graph used to determine the HFs. The name of the table is entered as a modifier after a blank space following the keyword.

    Modifiers to the horizontal keywords

    ZEROFACTOR - establishes the horizontal factor to be used when the HRMA is 0. This factor positions the y-intercept for any of the horizontal-factor functions.

    CUTANGLE - defines the HRMA angle beyond which the HF will be set to infinity.

    SLOPE - establishes the slope of the straight line used with the LINEAR and INVERSE_LINEAR horizontal-factor keywords. The slope is specified as a fraction of rise over run (i.e., 45 percent slope is 1/45, which is input as 0.02222).

    SIDEVALUE - establishes the HF when the HRMA is greater than or equal to 45 degrees and less than 90 degrees for the FORWARD horizontal-factor keyword that is specified.

    table_name - identifies the name of the ASCII table defining the HF. It is used in conjunction with the TABLE horizontal-factor keyword.

    Default Values for Horizontal Factor Modifiers

    
    Keywords         Zerofactor          Cutangle          Slope          Sidevalue
    
    Binary               1.0                 45              -                -
    
    Forward              0.5                 45(fixed)       -               1.0
    
    Linear               0.5                 181            1/90              -
    
    Inverse_linear       2.0                 180           -1/90              -
    
    

    [vertRaster]

    A raster defining the z value for each cell

    [vertFactor]

    Defines the relationship between the vertical cost factor and the vertical relative moving angle (VRMA)
    The input parameter may be one of several keywords (and modifiers) identifying a defined vertical factor graph or an ASCII file creating a custom graph. The graphs are used to identify the vertical factor that will be used in calculating the total cost for moving into a neighboring cell. If the parameter is used with any modifier, the string must be double quoted. The format for the vertical parameter is:

    "keyword {modifier_1 ... modifier_n}"

    Spaces must be used to separate the keyword and modifiers.

    The format for the vertical parameter modifiers is:

    modifier_name=value or table_name

    There is an equal sign (=) between the modifier name and its value, but there are no spaces between any of the three.

    If no keyword is specified, the default vertical parameter is SEC.

    Two acronyms are used in the explanations of the vertical-factor keywords and modifiers:

    VF stands for the vertical factor defining the vertical difficulty that is encountered moving from one cell to the next.
    VRMA stands for the vertical relative moving angle, which identifies the slope angle between the FROM or processing cell and the TO cell.

    Vertical-factor keywords

    BINARY - specifies that if the VRMA is greater than the low-cut angle and less than the high-cut angle then the VF is set to the value associated with the zerofactor; otherwise, it is infinity.

    LINEAR - indicates that the VF is a linear function of the VRMA.

    SYM_LINEAR - defines that the VF is a linear function of the VRMA in either the negative or positive side of the VRMA, respectively, and the two linear functions are symmetrical with respect to the VF (y) axis.

    INVERSE_LINEAR - indicates that the VF is an inverse linear function of the VRMA.

    SYM_INVERSE_LINEAR - identifies that the VF is an inverse linear function of the VRMA in either the negative or positive side of the VRMA, respectively, and the two linear functions are symmetrical with respect to the VF (y) axis.

    COS - defines the VF as the cosine-based function of the VRMA.

    SEC - identifies the VF as the secant-based function of the VRMA.

    COS-SEC - indicates that the VF is the cosine-based function of the VRMA when the VRMA is negative and the secant-based function of the VRMA when the VRMA is nonnegative.

    SEC-COS - specifies that the VF is the secant-based function of the VRMA when the VRMA is negative and the cosine-based function of the VRMA when the VRMA is nonnegative.

    TABLE - identifies that an ASCII file will be used to define the VFs. The name of the table is entered as a modifier after a blank space following the keyword.

    Modifiers to the vertical-factor keywords

    ZEROFACTOR - establishes the vertical factor to be used when the VRMA is 0. This factor positions the y-intercept of the specified function. By definition, the zerofactor is not applicable to any of the trigonometric vertical functions (COS, SEC, COS_SEC, or SEC_COS). The y-intercept is defined by these functions.

    LCUTANGLE - defines the VRMA angle below which the VF will be set to infinity.

    HCUTANGLE - defines the VRMA angle above which the VF will be set to infinity.

    SLOPE - establishes the slope of the straight line used with the LINEAR and INVERSE_LINEAR vertical-factor keyword. The slope is specified as a fraction of rise over run (e.g., 45 percent slope is 1/45, which is input as 0.02222).

    table_name - identifies the name of the ASCII file defining the VF. It is used in conjunction with the TABLE vertical-factor keyword.

    Default Values for Vertical Factor Modifiers

    
    Keywords                    Zerofactor     Lcutangle     Hcutangle     Slope     Cospower     Secpower
    
    Binary                          1.0           -30            30          -           -           -
    
    Linear                          1.0           -90            90         1/90         -           -
    
    Sym_linear                      1.0           -90            90         1/90         -           -
    
    Inverse_linear                  1.0           -45            45        -1/45         -           -
    
    Sym_inverse_linear              1.0           -45            45        -1/44         -           - 
    
    Cos                              -            -90            90          -          1.0          - 
    
    Sec                              -            -90            90          -           -          1.0
    
    Cos_sec                          -            -90            90          -          1.0         1.0
    
    Sec_cos                          -            -90            90          -          1.0         1.0
    
    

    [maxDistance]

    Defines the threshold that the accumulative cost values cannot exceed

    If an accumulative cost distance value exceeds the maxDistance, the output value for the cell location will be NoData. The maxDistance defines the extent which the accumulative cost distances are calculated. If no maxDistance is specified the distance will be to the edge of the output raster. The data type for maxDistance can be either integer or floating point.

    [valueRaster]

    An optional input Raster that identifies the zone values that should be used for each cell on the sourceData

    The value defined by the valueRaster for each source cell will be assigned to all cells that will be allocated to the source cell in the cost allocation computations. If no valueRaster is specified, the zone value for a source cell is the value on the sourceData.

    This parameter is particularly important if the sourceRaster was created by the ILogicalOp::Test or a ILogicalOp::Boolean methods that will only output 1 and 0 or if alternative values or zones are to be used instead of the existing ones, on the input source. The data type for the valueRaster can be any Raster object that supports IGeoDataset (e.g., Raster, Raster band, etc.)

    Product Availability

    Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Spatial Analyst Extension.

    Supported Platforms

    Windows, Solaris, Linux

    Parameters:
    sourceData - A reference to a com.esri.arcgis.geodatabase.IGeoDataset (in)
    distance - The distance (in)
    backlink - The backlink (in)
    allocation - The allocation (in)
    costRaster - A Variant (in, optional, pass null if not required)
    surfaceRaster - A Variant (in, optional, pass null if not required)
    horizRaster - A Variant (in, optional, pass null if not required)
    horizFactor - A Variant (in, optional, pass null if not required)
    vertRaster - A Variant (in, optional, pass null if not required)
    vertFactor - A Variant (in, optional, pass null if not required)
    maxDistance - A Variant (in, optional, pass null if not required)
    valueRaster - A Variant (in, optional, pass null if not required)
    Returns:
    A reference to a com.esri.arcgis.geodatabase.IGeoDataset
    Throws:
    IOException - If there are interop problems.
    AutomationException - If the ArcObject component throws an exception.