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 |
Yes |
||||||
CompressionMethod |
Method of compression used for the creation of derived rasters.
|
JPEG |
No |
||||||
CompressionQuality |
Quality of the compression.
|
80 |
No |
||||||
TileSize |
Size of tiles in the exported image for TIFF images only.
|
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.
|
Bilinear |
No |
Example:
ISCommand DefineDerivedRasters --ISDef=c:\Test2.ISDef\ImageSerivce.ISDef --OutputFolder=d:\rasters -–FormatName=TIFF --CompressionMethod=None –-CompressionQuality=80 --TileSize=256 --SamplingMethod=Bilinear