EditRasterDatasets
The EditRasterDatasets ISCommand is used to edit multiple raster process definition (.RPDef) files simultaneously.
The command line is:
ISCommand EditRasterDatasets --ISDef=<PathToISDef> --SelectQuery=<Query to select the rasters> --Search=<The raster source path to be changed> --Replace=<The new raster source path>
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 |
||||||
SelectQuery |
The query used to select the rasters. Examples include:
Enter "ALL" to select all records in the service. If no query is specified, the selection will be cleared, if there is one. |
String |
Yes |
||||||
Search |
Define the raster source path that is to be changed. |
String |
Yes |
||||||
Replace |
Define the new raster source path. |
String |
Yes |
Example:
ISCommand EditRasterDatasets --ISDef=c:\Test1.ISDef --SelectQuery=MaxPS>10.0 --Search=c:\test.RPDef --Replace=c:\test2.RPDef