GenerateSeamline

The GenerateSeamline ISCommand is used for generating seamlines polygons for the raster datasets in an image service definition.

The command line is:

ISCommand GenerateSeamlines --ISDef=<PathToServiceDefinition> --SeamlineGranularity=<SlgValue> --FeatherWidth=<widthValue> --RotationAngle=<angle> --DebugMode=[True|False] --Overwrite=[True|False] --ClipSeamlines=[True|False]

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

Overwrite

This parameter by default is false which means that the existing seamlines on the service will not be overwritten.

FALSE

No

SeamlineGranularity

This indicates the resolution at which the seamlines are generated. This is empty by default, therefore the approximate value will be calculated internally by the process.

 

No

FeatherWidth

Feathering softens edges along the seamline  ensuring a smooth transition of pixel values between two images. The FeatherW field in the seamline table will be updated with this value.

0

No

DebugMode

This parameter, when activated, writes out the cost images and other information for each raster.

FALSE

No

RotationAngle

This parameter is used to specify the angle by which the rasters will be rotated before generating seamlines for rotated datasets.

0

No

ClipSeamlines

This parameter, when turned on, clips the seamlines to remove the overlaps.

TRUE

No

Example:

ISCommand GenerateSeamlines --ISDef=c:\test.ISDef --SeamlineGranularity=5 --FeatherWidth=2 --RotationAngle=45 --DebugMode=FALSE --Overwrite=FALSE --ClipSeamlines=TRUE