Apply Adjustments (Data Management)

Summary

Applies the geographic adjustments to the mosaic dataset items. This tool uses the solution file from the Compute Adjustments tool.

This tool can also reset the geographic adjustments back to the original location.

Usage

Syntax

ApplyAdjustments_management (in_mosaic_dataset, adjustment_mode, {input_solution_table})
ParameterExplanationData Type
in_mosaic_dataset

The input mosaic dataset to adjust.

Mosaic Layer; Mosaic Dataset
adjustment_mode

Choose whether you want to adjust the mosaic dataset using the solution table or if you want to reset the mosaic dataset so there are no adjustments applied.

  • ADJUSTAdjust the mosaic dataset using the input solution table.
  • RESETReset the mosaic dataset so there are no adjustments applied to it.
String
input_solution_table
(Optional)

If you are adjusting your mosaic dataset, then you must specify an input solution feature class.

Feature Class; Feature Layer

Code Sample

ApplyAdjustments example 1 (Python window)

This is a Python sample for the ApplyAdjustments tool.

import arcpy
arcpy.ApplyAdjustments_management("\\serv\folder\applyAdjust.gdb\md01", 
                                  "ADJUST", "\\serv\folder\applyAdjust.gdb\sol")
ApplyAdjustments example 2 (stand-alone script)

This is a Python script sample for the ApplyAdjustments tool.

#===========================
#Apply Adjustments
'''Usage: ApplyAdjustments_management(in_mosaic_dataset, ADJUST | RESET, {input_solution_table})
'''

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

    #Apply spatial adjustment using solution table
    mdname = "applyadjust.gdb/md"
    mode = "ADJUST"
    solutiontbl = "C:/workspace/solutiontbl.dbf"

    arcpy.ApplyAdjustments_management(mdname, mode, solutiontbl)
    
    #Reset spatial adjustment
    mdname = "applyadjust.gdb/md"
    mode = "RESET"
    solutiontbl = ""

    arcpy.ApplyAdjustments_management(mdname, mode, solutiontbl)    

except:
    print "Apply Adjustments example failed."
    print arcpy.GetMessages()

Environments

This tool does not use any geoprocessing environments

Related Topics

5/7/2015