Import Mosaic Dataset Geometry (Data Management)

License Level:BasicStandardAdvanced

Summary

Modifies the feature geometry for footprints, the boundary, or seamlines in a mosaic dataset to match those in a polygon feature class.

Illustration

Image clipped to footprint

Usage

Syntax

ImportMosaicDatasetGeometry_management (in_mosaic_dataset, target_featureclass_type, target_join_field, input_featureclass, input_join_field)
ParameterExplanationData 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.

  • FOOTPRINTThe footprint polygons in the mosaic dataset.
  • SEAMLINEThe seamline polygons in the mosaic dataset.
  • BOUNDARYThe boundary polygon in the mosaic dataset.
String
target_join_field

Field in the mosaic dataset that will link to correct geometry in the input feature class.

Field
input_featureclass

The polygon feature class with the new geometry for the mosaic dataset.

Feature Layer; Raster Catalog Layer
input_join_field

Field in the input feature class that will link to the correct row in the mosaic dataset.

Field

Code Sample

ImportMosaicDatasetGeometry example 1 (Python window)

This is a Python sample for ImportMosaicDatasetGeometry.

import arcpy
arcpy.ImportMosaicDatasetGeometry_management("c:/workspace/fgdb.gdb/md",
                                                   "FOOTPRINT", "OBJECTID",
                                                   "infootprint.shp", "FTID")
ImportMosaicDatasetGeometry example 2 (stand-alone script)

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()

Environments

This tool does not use any geoprocessing environments

Related Topics

Licensing Information

ArcGIS for Desktop Basic: No
ArcGIS for Desktop Standard: Yes
ArcGIS for Desktop Advanced: Yes
11/18/2013