Summary
Defines the editing operations that nonowners have when editing a mosaic dataset in an enterprise geodatabase.
This tool prevents schema-locking issues that can occur when a mosaic dataset is stored in an enterprise geodatabase. The owner of the geodatabase runs this tool to create side tables and fields that may be needed by the user. The owner must also grant the proper permissions to allow users to insert, update, or delete records.
Usage
This tool is only needed when creating a mosaic dataset in an enterprise geodatabase and a nonowner will be editing the mosaic dataset.
Use this tool to set up a mosaic dataset that will be published as an image service allowing users to upload or edit the items. A user can only upload data if the raster type is allowed by the mosaic dataset.
If a nonowner attempts to perform an operation that is not allowed, the operation will fail.
The Raster Types parameter values specified by this tool control which rasters a nonowner can add using the Add Rasters To Mosaic Dataset tool. If the nonowner tries to add a raster type that has not been specified by this tool, the Add Rasters To Mosaic Dataset tool will fail.
If you run this tool without choosing any raster types, only the additional mosaic dataset tables will be created. These tables include overview, seamline, color correction, stereo, cell size levels, status, error, and permissions.
Syntax
arcpy.management.AlterMosaicDatasetSchema(in_mosaic_dataset, {side_tables}, {raster_type_names}, {editor_tracking})
Parameter | Explanation | Data Type |
in_mosaic_dataset | The mosaic dataset on which the permitted operations will be changed. | Mosaic Layer |
side_tables [operation,...] (Optional) | Specifies the operations that will be permissible for this mosaic dataset.
| String |
raster_type_names [raster_type,...] (Optional) | Specifies the raster types that nonowners can add to this mosaic dataset.
To use a custom raster type, enter the path of the custom raster type file. | String |
editor_tracking (Optional) | Specifies whether enable editor tracking will be enabled. Editor tracking can help you maintain accountability and enforce quality-control standards. For more information about editor tracking, see About tracking an editor's changes to data.
If the VIEW keyword is used in the side_tables parameter, editor tracking will automatically be enabled. | Boolean |
Derived Output
Name | Explanation | Data Type |
out_mosaic_dataset | The updated mosaic dataset. | Mosaic Layer |
Code sample
AlterMosaicDatasetSchema example 1 (Python window)
This is a Python sample for the AlterMosaicDatasetSchema function.
import arcpy
arcpy.AlterMosaicDatasetSchema_management(
"C:/folder/mySDEcon.sde/md_01",
"ANALYSIS;BOUNDARY;LEVELS;OVERVIEW;VIEW",
"QuickBird;IKONOS", "EDITOR_TRACKING")
AlterMosaicDatasetSchema example 2 (stand-alone script)
This is a Python script sample for the AlterMosaicDatasetSchema function.
#Alter Mosaic Dataset Schema mainly works on SDE mosaic datasets. The
#selected side tables of mosaic dataset will be created. If there are
#raster type settings, metadata fields will be create for that raster type.
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.
Licensing information
- Basic: No
- Standard: Yes
- Advanced: Yes