Define Overviews (Data Management)

License Level:BasicStandardAdvanced

Summary

Defines the tiling schema and properties of the preprocessed raster datasets that will cover part or all of a mosaic dataset at varying resolutions.

Usage

Syntax

DefineOverviews_management (in_mosaic_dataset, {overview_image_folder}, {in_template_dataset}, {extent}, {pixel_size}, {number_of_levels}, {tile_rows}, {tile_cols}, {overview_factor}, {force_overview_tiles}, {resampling_method}, {compression_method}, {compression_quality})
ParameterExplanationData Type
in_mosaic_dataset

The path and name of the mosaic dataset.

Mosaic Layer
overview_image_folder
(Optional)

The folder or geodatabase where the overviews will be stored.

Overviews that are stored and managed within personal and file geodatabases have the default overview folder location in the same workspace as the residing geodatabase.

Workspace
in_template_dataset
(Optional)

A raster dataset or polygon feature class used to define the extent or shape of the overview.

The extent of the raster dataset will be used when using a raster dataset. The shape of the polygon will be used when using a feature class.

Raster Layer; Feature Layer
extent
(Optional)

Four coordinates defining the extent of the overview that will be generated.

This is specified as space delimited in the following order: X-minimum X-maximum Y-minimum Y-maximum.

The mosaic dataset boundary will be used to determine the extent of the overviews if an extent is not defined.

Envelope
pixel_size
(Optional)

Base pixel size used to generate the overviews. The default is determined by the software.

The units for this parameter is in the same units as the spatial reference of the mosaic dataset.

Double
number_of_levels
(Optional)

The number of overview levels that will be generated.

For a number greater than 0, it will be the number of overview levels generated. For example, 3 will generate three levels of overviews. If the value is left blank or -1, then an optimal number of overviews will be generated by the system.

Long
tile_rows
(Optional)

Optimum number of rows in the overview.

The larger the value, the bigger the file, and the more likely it will need to be regenerated if any lower image changes.

This number can affect the number of overview images created. If it's a large number, then fewer overviews will be generated. If it's a small number, then more files are generated.

Long
tile_cols
(Optional)

Optimum number of columns in the overview.

The larger the value, the bigger the file, and the more likely it will need to be regenerated if any lower image changes.

This number can affect the number of overview images created. If it's a large number, then fewer overviews will be generated. If it's a small number, then more files are generated.

Long
overview_factor
(Optional)

The ratio used to determine the size of the next overview. For example, if the cell size of the first level is x, and the overview factor is 3, then the next overview pixel size will be 3x.

Long
force_overview_tiles
(Optional)

Affects the levels at which overviews will be generated.

  • NO_FORCE_OVERVIEW_TILESOverviews will only be created at levels above the primary raster pyramids levels. This is the default.
  • FORCE_OVERVIEW_TILES Overviews will be created at all levels, even though the primary rasters have pyramids.
Boolean
resampling_method
(Optional)

The resampling algorithm used when creating the overviews.

  • NEARESTNearest neighbor assignment. If the Key Metadata Data Type is thematic, then nearest neighbor will be the default.
  • BILINEARBilinear interpolation. This is the default, unless the Key Metadata Data Type is thematic.
  • CUBICCubic convolution.
String
compression_method
(Optional)

This defines the type of data compression that will be used to store the overview images.

  • JPEGA lossy compression. This is the default, unless the Key Metadata Data Type is thematic.
  • JPEG_YCbCrA lossy compression using the luma (Y) and chroma (Cb and Cr) color space components.
  • NoneNo data compression.
  • LZWA lossless compression. If the Key Metadata Data Type is thematic, then nearest neighbor will be the default.
String
compression_quality
(Optional)

Quality of the compression used with the JPEG compression method. The compression quality can range from 1 to 100. A higher number means better image quality but less compression.

Long

Code Sample

DefineOverviews example 1 (Python window)

This is a Python sample for DefineOverviews.

import arcpy
arcpy.DefineOverviews_management("c:/workspace/fgdb.gdb/md01", 
                                 "c:/temp", "#", "#", "30", "6", "4000", 
                                 "4000", "2", "CUBIC", "JPEG", "50")
DefineOverviews example 2 (stand-alone script)

This is a Python script sample for DefineOverviews.

#Define Overviews to the default location
#Define Overviews for all levels - ignore the primary Raster pyramid
#Define Overviews compression and resampling method

import arcpy
arcpy.env.workspace = "C:/Workspace"

    
arcpy.DefineOverviews_management("DefineOVR.gdb/md", "#", "#", "#", "#", 
                                 "#", "#", "#", "#", "FORCE_OVERVIEW_TILES",
                                     "BILINEAR", "JPEG", "50")

Environments

Related Topics

Licensing Information

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