Batch Build Pyramids (Data Management)

Summary

Builds pyramids for multiple raster datasets.

Usage

Syntax

BatchBuildPyramids_management (Input_Raster_Datasets)
ParameterExplanationData Type
Input_Raster_Datasets
[input_raster_dataset,...]

The input raster datasets that you want to build raster pyramids for.

Each input should have more than 1024 rows and 1024 columns.

Raster Dataset

Code Sample

BatchBuildPyramids example 1 (Python window)

This is a Python sample for BatchBuildPyramids.

import arcpy
from arcpy import env
env.workspace = "c:/data"
arcpy.BatchBuildPyramids_management("image1.tif;image2.img;image3.bmp")
BatchBuildPyramids example 2 (stand-alone window)

This is a Python script sample for BatchBuildPyramids.

##====================================
##Batch Build Pyramids
##Usage: BatchBuildPyramids_management Input_Raster_Datasets;Input_Raster_Datasets...

try:
    import arcpy
    arcpy.env.workspace = r"C:/Workspace"
    
    ##Build Pyramids for multiple raster datasets
    arcpy.BatchBuildPyramids_management("image1.tif;image2.img;fgdb.gdb/image3")

except:
    print "Batch Build Pyramids example failed."
    print arcpy.GetMessages()

Environments

Pyramid

The pyramid level, pyramid compression, and resampling method does not apply to the IMG format.

Related Topics

Licensing Information

ArcView: Yes
ArcEditor: Yes
ArcInfo: Yes

10/27/2014