BlueSpray - Help
© SchoonerTurtles, Inc. 2012-2015

Introduction
Contents
Getting Started
Download
Navigating
Tutorials
Scripting
Advanced
About

Class STCostDistance

Extends STTransformRaster

Find the "STCostDistance" raster for a given origin and cost raster.

Computes the cost to move from each pixel in a raster to a pixel with the specified
origin value in the origin raster. If a cost raster is specified then the values
for crossing each pixels are mulitplied by the matching pixels in the cost raster.
Otherwise, a value of 1 is used for each pixel. Crossing values are computed based
on the following for moving vertically or hoziontally to a new pixel:

CostToCrossPixel=0.5*CurrentPixelCost+0.5*NextPixelCost

The following is used to move diagonally to a new pixel:

CostToCrossPixel=0.70710678*CurrentPixelCost+0.70710678*NextPixelCost

Where 0.70710678 is the length of one-half the diagonal of an entire pixel.


Copyright, SchoonerTurtles LLP, 2009
@author Jim Graham

Static Functions

ReturnsFunctionThrows
STRaster Find(STRaster TheOrigin,STRaster TheCostRaster,
     double NewOriginValue,double NewTolerance)
Exception

Static Functions


STRaster Find(STRaster TheOrigin,STRaster TheCostRaster,
     double NewOriginValue,double NewTolerance) Exception

Single function to generate a cost distance raster

Parameters:
    TheOrigin - original raster containing the origin points
    TheCostRaster - optional cost raster to modify the costs between pixels
    NewOriginValue - value within the origin raster that we are computing distances to
    NewTolerance - tolerance between cost values to calculate.
Returns: