Label | Explanation | Data Type |
Mosaic Dataset | The mosaic dataset that you want to export the geometry from. | Mosaic Layer |
Output Feature Class
| Name the feature class you are creating. | Feature Class |
Query Definition
(Optional) | An SQL expression to export specific rasters in the mosaic dataset. | SQL Expression |
Geometry Type
(Optional) | The type of geometry to export.
| String |
Summary
Creates a feature class showing the footprints, boundary, seamlines or spatial resolutions of a mosaic dataset.
Usage
When you set Geometry Type to Cell size level, you are exporting the union of items that have the same resolution level. This is useful to quickly see the coverage of your imagery for each cell size level.
Parameters
arcpy.management.ExportMosaicDatasetGeometry(in_mosaic_dataset, out_feature_class, {where_clause}, {geometry_type})
Name | Explanation | Data Type |
in_mosaic_dataset | The mosaic dataset that you want to export the geometry from. | Mosaic Layer |
out_feature_class | Name the feature class you are creating. | Feature Class |
where_clause (Optional) | An SQL expression to export specific rasters in the mosaic dataset. | SQL Expression |
geometry_type (Optional) |
The type of geometry to export.
| String |
Code sample
This is a Python sample for the ExportMosaicDatasetGeometry function.
import arcpy
arcpy.ExportMosaicDatasetGeometry_management(
"c:/workspace/exportmd.gdb/md",
"c:/workspace/exportmd.gdb/footprint_export",
"OBJECTID = 1", "FOOTPRINT")
This is a Python script sample for the ExportMosaicDatasetGeometry function.
#Export Mosaic Dataset Geometry
import arcpy
arcpy.env.workspace = "c:/workspace"
#Export footprint from a single record in a mosaic dataset
mdname = "exportmd_footprints.gdb/md"
out_FC = "C:/workspace/LANDSAT_footprints"
where_clause = "OBJECTID = 1"
geometry_type = "FOOTPRINT"
arcpy.ExportMosaicDatasetGeometry_management(
mdname, out_FC, where_clause, geometry_type)