Import Mosaic Dataset Geometry (Data Management)
Summary
Modifies the geometry for the footprints, boundary, or seamlines in a mosaic dataset to match those from a feature class.
Illustration
Usage
-
This tool matches the feature in the mosaic dataset with the feature in the feature class based on a common attribute field.
The footprint is not always used to clip the image in the mosaic dataset. You can change the Always Clip The Image To Its Footprint property to Yes in the Mosaic Dataset Properties dialog box on the Defaults tab.
This tool will not recalculate the extent of the mosaic dataset. To recalculate the extent, you will need to recalculate the feature extent within the Mosaic Dataset Properties window.
Syntax
Parameter | Explanation | Data Type |
in_mosaic_dataset |
Path and name of mosaic dataset. | Mosaic Layer |
target_featureclass_type |
The polygon feature class in the mosaic dataset whose geometry will be replaced.
| String |
target_join_field |
The field in the mosaic dataset to use as a basis for the join. | Field |
input_featureclass |
The polygon feature class with the new geometry for the mosaic dataset. | Feature Layer; Raster Catalog Layer |
input_join_field |
The field in the input feature class to use as a basis for the join. | Field |
Code Sample
This is a Python sample for ImportMosaicDatasetGeometry.
import arcpy
arcpy.ImportMosaicDatasetGeometry_management("c:/workspace/fgdb.gdb/md",
"FOOTPRINT", "OBJECTID",
"infootprint.shp", "FTID")
This is a Python script sample for ImportMosaicDatasetGeometry.
##===========================
##Import Mosaic Dataset Geometry
##Usage: ImportMosaicDatasetGeometry_management in_mosaic_dataset FOOTPRINT | SEAMLINE
## | BOUNDARY target_join_field
## input_featureclass input_join_field
try:
import arcpy
arcpy.env.workspace = "c:/PrjWorkspace/RasGP"
# Import shape file geometry as Mosaic Dataset Footprints
# Note: Feature class FID starts with 0
arcpy.ImportMosaicDatasetGeometry_management("Geometry.gdb/md",
"FOOTPRINT", "OBJECTID",
"infootprint.shp", "FTID")
# Import GDB feature class as Mosaic Dataset Boundary
arcpy.ImportMosaicDatasetGeometry_management("Geometry.gdb/md", "BOUNDARY",
"OBJECTID", "Geometry.gdb/inboundary",
"OBJECTID")
except:
print "Import Mosaic Dataset Geometry example failed."
print arcpy.GetMessages()