How to compute pixel size ranges on a Mosaic dataset (ArcObjects .NET 10.6 SDK)
ArcObjects Help for .NET developers > Developing with ArcGIS > Learning ArcObjects > Managing data > Working with image and raster data > Working with Mosaic datasets > How to compute pixel size ranges on a Mosaic dataset (ArcObjects .NET 10.6 SDK)

How to compute pixel size ranges on a Mosaic dataset


Computing pixel size ranges on a Mosaic dataset

The Mosaic dataset operation interface is used to perform operations on a Mosaic dataset. Do the following steps to compute pixel size ranges on rasters on a Mosaic dataset:
  1. Create a calculate cell size ranges parameters object.
  2. Use the Mosaic dataset operation interface to calculate cell size ranges.

    See the following code example:
[C#]
public void ComputeCellSizeRangesOnMD(IMosaicDataset theMosaicDataset)
{
    // The mosaic dataset operation interface is used to perform operations on 
    // a mosaic dataset.
    IMosaicDatasetOperation theMosaicDatasetOperation=(IMosaicDatasetOperation)
        (theMosaicDataset);
    // Create a CalculateCellSizeRanges parameters object.
    ICalculateCellSizeRangesParameters computeArgs=new
        CalculateCellSizeRangesParametersClass();
    // Use the mosaic dataset operation interface to calculate cell size ranges.
    theMosaicDatasetOperation.CalculateCellSizeRanges(computeArgs, null);
}
[VB.NET]
Public Sub ComputeCellSizeRangesOnMD(ByVal theMosaicDataset As IMosaicDataset)
    ' The mosaic dataset operation interface is used to perform operations on
    ' a mosaic dataset.
    Dim theMosaicDatasetOperation As IMosaicDatasetOperation =
    DirectCast((theMosaicDataset), IMosaicDatasetOperation)
    
    ' Create a CalculateCellSizeRanges parameters object.
    Dim computeArgs As ICalculateCellSizeRangesParameters=New CalculateCellSizeRangesParametersClass()
    ' Use the mosaic dataset operation interface to calculate cell size ranges.
    theMosaicDatasetOperation.CalculateCellSizeRanges(computeArgs, Nothing)
End Sub


See Also:

How to open a Mosaic dataset




To use the code in this topic, reference the following assemblies in your Visual Studio project. In the code files, you will need using (C#) or Imports (VB .NET) directives for the corresponding namespaces (given in parenthesis below if different from the assembly name):
Development licensing Deployment licensing
ArcGIS Desktop Standard ArcGIS Desktop Standard
ArcGIS Desktop Advanced ArcGIS Desktop Advanced