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
-
This tool can be used to apply the adjustments from the solution file or reset the geographic alignment back to its original state.
Syntax
Parameter | Explanation | Data 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.
| 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
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")
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()