| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 6 年前 | ||
| 6 年前 | ||
| 9 年前 | ||
| 6 年前 | ||
| 6 年前 |
Get and set key properties on a mosaic dataset
This sample shows how to open a mosaic dataset and goes through each row in the attribute table, then checks whether the dataset in the row has any band information (band properties) associated with it. If the item has no band information, band properties for the first three bands in the item (if the item has three or more bands) are inserted. The mosaic dataset product definition is changed to natural color red, green, and blue (RGB) so that ArcGIS can use the band names of the mosaic dataset. This sample also shows how to set a key property on the mosaic dataset.
This sample has the following functions:
- Functions to get/set any key property for a dataset
- Functions to get/set any band property for a dataset
- Functions to get all the properties and all the band properties
-
for a dataset
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
- ArcObjects .NET API Reference online
- Sample Data Download
- What's new
- Download the ArcObjects SDK for .Net from MyEsri.com
Usage
- Start Visual Studio and open the solution file.
- Edit the strings in the Input database and Mosaic Dataset region to specify the parameters that specify the database from which to open the mosaic dataset, and the name of the mosaic dataset to open. Alternatively, these parameters can also be specified as command line arguments.
- Compile and run the program.
- If the program succeeds, the console shows a Success message. If an error occurs, it shows on the console window.
- Load the changed mosaic dataset into ArcMap or ArcCatalog.
Licensing
| Development licensing | Deployment licensing |
|---|---|
| ArcGIS Desktop Standard | ArcGIS Desktop Standard |
| ArcGIS Desktop Advanced | ArcGIS Desktop Advanced |
| Engine Developer Kit | Engine |