Create a Raster Function template


PurposeThis topic shows how to create a Raster Function template, which defines a series of raster functions applied to two images resulting in one Function Raster dataset as the output. It accepts as input, the Panchromatic and Multispectral rasters of a QuickBird Basic dataset, and applies a series of raster functions to each, resulting in a pan-sharpened raster dataset as the output.

How to use

See How to use ArcGIS samples for help on compiling, setting up the debugger, and running the sample. If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders. However, you will need to update the sample to point to the location of the data once you have extracted all the files.

  1. Start Visual Studio and open the solution file.
  2. Edit the strings in the "Specify input directory and dataset name" region to specify the directory and name of the input datasets, and the full path to the output dataset including the .afr extension.
  3. Compile and run the program.
  4. If the program succeeds, the console shows a "Success" message. If an error occurs, it shows on the console window.
  5. Load the created output .afr file into ArcMap or ArcCatalog, which reflects the processing results.

CreateRasterFunctionTemplate.cs Main source file that contains the components of the sample, including licensing code.
Download the C# files
CreateRasterFunctionTemplate.vb Main source file that contains the components of the sample, including licensing code.
Download the VB.NET files

Download the files for all languages




Development licensing Deployment licensing
ArcGIS for Desktop Basic ArcGIS for Desktop Basic
ArcGIS for Desktop Standard ArcGIS for Desktop Standard
ArcGIS for Desktop Advanced ArcGIS for Desktop Advanced
Engine Developer Kit Engine