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:
- Create a calculate cell size ranges parameters object.
- Use the Mosaic dataset operation interface to calculate cell size ranges.
See the following code example:
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 datasetTo 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 |
---|---|
ArcEditor | ArcEditor |
ArcInfo | ArcInfo |