DefineDerivedRasters

The DefineDerivedRasters ISCommand is used to define derived rasters of an image service definition. This command defines derived rasters for all the input rasters and generates the images. You can override parameters, such as the compression method, tile size, and compression quality and output image location. By default, the derived images will be generated where the image service definition is located. You cannot define derived rasters on a selection set.

The default command line is:

ISCommand DefineDerivedRasters --ISDef=<PathToISDef> --OutputFolder=<OutputFolder> --FormatName=<FormatName> --CompressionMethod=<CompressionMethod> --CompressionQuality=<CompressionQuality> --TileSize=<TileSize> --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

FormatName

Format to be used for the creation of derived rasters.

TIFF, JPEG2000

TIFF

Yes

CompressionMethod

Method of compression used for the creation of derived rasters.

JPEG, JPEG2000, LZ77

JPEG

No

CompressionQuality

Quality of the compression.

0-100

80

No

TileSize

Size of tiles in the exported image for TIFF images only.

0, 64, 128, 256, 512, 1024

256

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 Neighbor - This method is useful for discrete data (such as land uses, or soil types)
Bilinear -  This method is useful for continuous data (such as elevation), giving the smoothest appearance to your data.
BiCubic - This method is also useful for continuous data, giving a sharper appearance to your data than Bilinear Interpolation.

Bilinear

No

Example:

ISCommand DefineDerivedRasters --ISDef=c:\Test2.ISDef\ImageSerivce.ISDef --OutputFolder=d:\rasters -FormatName=TIFF --CompressionMethod=None –-CompressionQuality=80 --TileSize=256 --SamplingMethod=Bilinear