Alter Mosaic Dataset Schema (Data Management)

License Level:BasicStandardAdvanced

Summary

Prepares the schema of a mosaic dataset in ArcSDE by generating any tables or fields that may be required. This allows the nonowner of the mosaic dataset to make modifications, such as adding raster data.

This tool prevents schema-locking issues that can arise when a mosaic dataset is stored in ArcSDE. The ArcSDE owner will run this tool to create any side tables and fields that may be needed by the user. The ArcSDE owner must also grant the proper permissions to allow users to insert, update, or delete records.

Usage

Syntax

AlterMosaicDatasetSchema_management (in_mosaic_dataset, {side_tables}, {raster_type_names})
ParameterExplanationData Type
in_mosaic_dataset

The input mosaic dataset schema to alter.

Mosaic Layer
side_tables
[side_table,...]
(Optional)

Choose all the operations that are allowable for this mosaic dataset. The proper tables will be created.

  • ANALYSISChoose this option if a nonowner is allowed to run the Analyze Mosaic Dataset tool on the mosaic dataset.
  • BOUNDARYChoose this option if a nonowner is allowed to create or edit the boundary of the mosaic dataset. This is also required if a nonowner will add rasters outside of the existing boundary.
  • COLOR_CORRECTIONChoose this option if a nonowner is allowed to color correct the mosaic dataset.
  • LEVELSChoose this option if a nonowner is allowed to calculate cell size ranges or create seamlines for the mosaic dataset.
  • LOGChoose this option if a nonowner is allowed to create a log table for the mosaic dataset.
  • OVERVIEWChoose this option if a nonowner is allowed to create overviews for the mosaic dataset.
  • SEAMLINEChoose this option if a nonowner is allowed to create seamlines for the mosaic dataset.
  • STEREOChoose this option if a nonowner is allowed to define stereo pairs for the mosaic dataset.
String
raster_type_names
[raster_type_names,...]
(Optional)

Choose all the raster types that are allowable for this mosaic dataset. The proper fields will be created.

  • CADRG/ECRGCADRG/ECRG raster type
  • CIBCIB raster type
  • DTEDDTED raster type
  • FORMOSAT-2FORMOSAT-2 raster type
  • GeoEye-1GeoEye-1 raster type
  • HREHRE raster type
  • IKONOSIKONOS raster type
  • KOMPSAT-2KOMPSAT-2 raster type
  • LAS LAS raster type
  • Landsat 1-5 MSSLandsat 1-5 MSS raster type
  • Landsat 4-5 TMLandsat 4-5 TM raster type
  • Landsat 7 ETM+Landsat 7 ETM+ raster type
  • NITFNITF raster type
  • QuickbirdQuickbird raster type
  • RADARSAT-2RADARSAT-2 raster type
  • RapidEye RapidEye raster type
  • Raster Process DefinitionRaster Process Definition raster type
  • SPOT 5SPOT 5 raster type
  • WorldView-1WorldView-1 raster type
  • WorldView-2 WorldView-2 raster type

If you wish to use a custom raster type, then type the path of the custom raster type file.

String

Code Sample

AlterMosaicDatasetSchema example 1 (Python window)

This is a Python sample for the AlterMosaicDatasetSchema tool.

import arcpy
arcpy.AlterMosaicDatasetSchema_management(
     "\\serv\folder\myFGBD.gdb\md_01", "ANALYSIS;BOUNDARY;LEVELS;OVERVIEW",
     "QuickBird;IKONOS;Match-AT")
AlterMosaicDatasetSchema example 2 (stand-alone script)

This is a Python script sample for the AlterMosaicDatasetSchema tool.

#Alter Mosaic Dataset Schema mainly works on SDE mosaic dataset
#The selected side tables of mosaic dataset will be created
#If there is raster type settings, metadata fields for that raster 
#types will be created

import arcpy
arcpy.env.workspace = "C:/Workspace"

mosaicds = "sdeserver.sde/mosaicds"
ops = "ANALYSIS;BOUNDARY;LEVELS;LOG;OVERVIEW"
rastypes = "QuickBird;IKONOS;Match-AT"

    
arcpy.AlterMosaicDatasetSchema_management(mosaicds, ops, rastypes)

Environments

This tool does not use any geoprocessing environments

Related Topics

Licensing Information

ArcGIS for Desktop Basic: No
ArcGIS for Desktop Standard: Yes
ArcGIS for Desktop Advanced: Yes
11/18/2013