Build Boundary (Data Management)
Summary
Generates the boundary polygon for a mosaic dataset. By default, the boundary merges all the footprint polygons to create a single boundary representing the extent of the valid pixels. The boundary of the mosaic dataset is updated to exclude any areas where mosaic dataset items have been removed.
Illustration
Usage
-
Boundaries can only be generated for mosaic datasets stored within a geodatabase.
-
If you modify the shape of the boundary polygon (using editing tools), you can use this tool to recreate the original (unmodified) boundary.
-
If you modify the shape of the boundary polygon (using editing tools), you can use this tool to rebuild the boundary to its unmodified shape.
-
Use the Append To Existing Boundary option to only update the boundary where newly added footprints exist. Since the entire boundary is not recalculated, it will save time.
Syntax
Parameter | Explanation | Data Type |
in_mosaic_dataset |
The mosaic dataset for which the boundary will be calculated. | Mosaic Dataset |
where_clause (Optional) |
Enter an SQL query if you would like to create a subset of the data, based on attributes. | SQL Expression |
append_to_existing (Optional) |
When footprints have been selected, this option determines how the boundary will be modified.
| Boolean |
Code Sample
This is a Python sample for the BuildBoundary tool.
import arcpy arcpy.BuildBoundary_management("c:/workspace/fGDB.gdb/md","APPEND")
This is a Python script for the BuildBoundary tool.
##=========================== ##Build Boundary ##Usage: BuildBoundary_management in_mosaic_dataset {OVERWRITE | APPEND} try: import arcpy arcpy.env.workspace = r"C:\Workspace" #Build boundary using the appending mode arcpy.BuildBoundary_management("Boundary.gdb/md","APPEND") except: print "Build Boundary example failed." print arcpy.GetMessages()