Skip to content

Latest commit

 

History

History
 
 

CustomNodataFilter

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Create a custom NoData pixel filter

This sample shows how to implement a custom raster pixel filter by extending IPixelFilter. As an example, a NoData filter is implemented that filters pixels as NoData if its value falls in a given range of values.

Language:              C#, VB
Subject:               Raster
Organization:          Esri, http://www.esri.com
Date:                  10/17/2019
ArcObjects SDK:        10.8
Visual Studio:         2017, 2019
.NET Target Framework: 4.5

Resources

Usage

  1. Open the solution in Visual Studio.
  2. A test image (testimage.tif) is provided in this sample's folder if you installed the ArcObjects software development kit (SDK), and the output will be in the same folder by default.
  3. You can change the data path in the TestApp code to reference your dataset. You can also change the NoData range for your specific data.
  4. Build the solution.
  5. Run.
  6. Browse to the output raster dataset and compare the display with the original data. Notice the pixels that fell inside the given range of values do not appear on the screen. (Note: The output raster dataset is located in the Temp folder for the user's local settings.)

Licensing

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