Create and mosaic a raster dataset in a file geodatabase


Purpose
This sample demonstrates how to use geoprocessing tools to create a file geodatabase (FGDB), create a raster catalog inside the FGDB, then load raster data from a location on disk into the raster catalog. It also demonstrates how to mosaic datasets in the raster catalog using ArcObjects.

How to use

See How to use ArcGIS samples for help on 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.

  1. Execute the sample.
  2. After sample execution is complete, examine the FileMosaicSample.gdb file geodatabase in your output folder, the sampleRasCat raster catalog in the geodatabase, and the two raster datasets in the sampleRasCat raster catalog. Also examine the mosaicked raster—fileMosaicSample.img—in your output folder.


Download the files for Java
geoprocessing/CreateMosaic.java Main class




Development licensing Deployment licensing
Engine Developer Kit Engine Runtime
ArcView