How to use
See How to use ArcGIS samples for help on compiling, setting up the debugger, and running the sample. If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders. However, you will need to update the sample to point to the location of the data once you have extracted all the files.
Setting up the custom function
- Start Visual Studio and open the solution.
- Build the DMCIIRasterType and TestDMCIIRasterType projects.
- The raster type can now be used like any of the built-in raster types in the system.
Using the custom raster type in desktop
- Start ArcMap.
- Create a mosaic dataset.
- Run the Add Rasters To Mosaic Dataset tool.
- Select the mosaic dataset created as source.
- Select the DMCII Raster Type from the list of raster types.
- To adjust raster type specific properties, click the Raster Type Properties button to the right of the Raster Type Selection drop-down list. The Raster Type properties page opens with options to pick the specific product to add (All, L1R, or L1T) and the template to apply (Raw or Stretch).
- Change settings as desired and click OK.
- Use the directory picker, or drag and drop the directory containing the DMCII data into the table showing input workspaces.
- Click OK.
- The tool adds the DMCII data to the mosaic dataset using the custom raster type.
Using the custom raster type test application
- Start Visual Studio and open the solution file.
- Open the TestDMCIIRasterType project.
- Edit the strings in the Setup MD Test Parameters region to specify the parameters that control what geodatabase to create, where to create the geodatabase and mosaic dataset, the names of the geodatabase and the mosaic dataset, what folder to add data from, and so on.
- Compile and run the program.
- The program console displays detailed messaging regarding the steps it performs and whether it has succeeded or not. It will also display any errors that occur.
- Load the created mosaic dataset into ArcMap or ArcCatalog.
DMCIIRasterType\DMCIIRasterType.cs | Main source file that implements the custom raster type. |
TestDMCIIRasterType\TestDMCIIRasterType.cs | Main source file for the optional test application that is used to generate a mosaic dataset and add items to it using the custom raster type. |
DMCIIRasterType\DMCIIRasterType.vb | Main source file that implements the custom raster type. |
TestDMCIIRasterType\TestDMCIIRasterType.vb | Main source file for the optional test application that is used to generate a mosaic dataset and add items to it using the custom raster type. |
Download the files for all languages
Development licensing | Deployment licensing |
---|---|
ArcGIS for Desktop Standard | ArcGIS for Desktop Standard |
ArcGIS for Desktop Advanced | ArcGIS for Desktop Advanced |
Engine Developer Kit | Engine |