Replaces areas in a raster corresponding to a mask, with the values of the nearest neighbors.
[Visual Basic .NET] Public Function Nibble ( _ ByVal Raster As IGeoDataset, _ ByVal maskRaster As IGeoDataset, _ ByVal useNoData As Boolean _ ) As IGeoDataset
[C#] public IGeoDataset Nibble ( IGeoDataset Raster, IGeoDataset maskRaster, bool useNoData );
[C++]
HRESULT Nibble(
IGeoDataset* Raster,
IGeoDataset* maskRaster,
VARIANT_BOOL useNoData,
IGeoDataset** Nibble
);
[C++]Parameters
Raster [in]Raster is a parameter of type IGeoDataset
maskRaster [in]maskRaster is a parameter of type IGeoDataset
useNoData [in] useNoData is a parameter of type VARIANT_BOOL Nibble [out, retval]Nibble is a parameter of type IGeoDataset
Product Availability
Remarks
raster |
an input Raster dataset |
maskRaster |
the name of a Raster to be used as the mask. Cells with NoData as their value will be nibbled in the first input raster |
useNoData |
Boolean defining if NoData values in the raster are allowed to nibble into the area defined by the maskRaster If True, then the nearest neighbor value will be used whether it is NoData or another data value in the first input raster. NoData values in the first input raster are free to nibble into areas defined in the maskRaster if they are the nearest neighbor. If False, then only data values are free to nibble into areas defined in the maskRaster. NoData values in the first input raster are not allowed to nibble into areas defined in the maskRaster even if they are the nearest neighbor. |
- The method returns a reference to a Raster object.
- Read the Working with ArcGIS Spatial Analyst objects technical document for general information on implementing Spatial Analyst operations.