Build Pyramids (Data Management)

Summary

Builds raster pyramids for a raster dataset.

This tool can also be used to delete pyramids. To delete pyramids, uncheck the Build Pyramids checkbox in the geoprocessing Environment Settings window.

Illustration

Build Pyramids

Usage

Syntax

BuildPyramids_management (in_raster_dataset)
ParameterExplanationData Type
in_raster_dataset

The input raster dataset.

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

Raster Dataset

Code Sample

BuildPyramids example 1 (Python window)

This is a Python sample for BuildPyramids.

import arcpy
from arcpy import env
env.workspace = "c:/data"
arcpy.env.pyramid = "PYRAMIDS 3 BILINEAR JPEG"
arcpy.BuildPyramids_management("image.tif")
BuildPyramids example 2 (stand-alone window)

This is a Python script sample for BuildPyramids.

##====================================
##Build Pyramids
##Usage: BuildPyramids_management in_raster_datasetues...

try:
    import arcpy
    arcpy.env.workspace = r"\\machine\PrjWorkspace\RasGP"
    
    ##Build Pyramids for single Raster Dataset
    ##Define the type and compression of pyramids in the environment setting
    arcpy.env.pyramid = "PYRAMIDS 3 BILINEAR JPEG"
    arcpy.BuildPyramids_management("image.tif")

except:
    print "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