DefineServiceOverviews

The DefineServiceOverviews ISCommand defines the service overviews for an image service definition. You can specify parameters, such as the optimum rows and columns, compression method, tile size, and compression quality.

The default command line is:

ISCommand DefineServiceOverviews --ISDef=<PathToISDef> --OutputFolder=<OutputFolder> --OptimumNRows=<OptimumNRows> --OptimumNCols=<OptimumNCols> --FormatName=<FormatName> --CompressionMethod=<CompressionMethod> --CompressionQuality=<CompressionQuality> --TileSize=<TileSize> --PixelSize=<PixelSize> --OverviewFactor=<OverviewFactor> --SamplingMethod=<SamplingMethod>

The table below defines the variables that are required to use this script. Most variables are defined within the script. You can either make an edit to the script or enter the variable at the command line as shown below.

Variable

Description/Options

Default

Required

ISDef

Path and name of the image service definition file.

User specified

yes

OutputFolder

Path and name of the output folder.

User specified

Yes

OptimumNRows

Optimum number of rows in the derived tile.

5120

No

OptimumNCols

Optimum number of columns in the derived tile.

5120

No

FormatName

Format to be used for the creation of derived rasters.

TIFF, JPEG2000

TIFF

Yes

CompressionMethod

Method of compression to be used to create external overviews.

JPEG, None, LZ77

JPEG

No

CompressionQuality

Compression quality to be used to create external overviews.

0-100

80

No

TileSize

Tile size that has to be used (for TIFF) to create external overviews.

0, 64, 128, 256, 512, 1024

256

No

BasePixelSize

Pixel size used to create the derived tiles.

None

No

OverviewFactor

Factor to use in the generation of overviews.

 

3

 

No

SamplingMethod

Name of the sampling method that defines how the pixels in the rasters are resampled to match the resolution of the AOI.

Nearest NeighborThis method is useful for discrete data (such as land uses, or soil types)
BilinearThis method is useful for continuous data (such as elevation), giving the smoothest appearance to your data.
BiCubicThis method is also useful for continuous data, giving a sharper appearance to your data than Bilinear Interpolation.

Bilinear

No

Example:

ISCommand DefineServiceOverviews --ISDef=c:\Test2.ISDef\ImageSerivce.ISDef --OutputFolder=<OutputFolder> -OptimumNRows=5120 -OptimumNCols=5120 FormatName=TIFF --CompressionMethod=None CompressionQuality=80 --TileSize=256 –-PixelSize=0.1 --OverviewFactor=3 --SamplingMethod=Bilinear