Process Designer : CARIS Batch Utility : Feature Editing Processes : Smooth Features
 

Smooth Features

Description

The SmoothFeatures process adds vertices to features by applying a B-spline function.

Inputs

Features in a supported format. HOB and 000 (S-57 specification) are supported.

Outputs

Features in HOB format.

Command Line Syntax

carisbatch --run SmoothFeatures --feature-catalogue <value> --b-spline-order <value> [options] <input> <output>

User Interface Command

Simplify/Smooth

Options

The following table describes the parameters available for this process.

Parameter

 

Long

Short

Description

Can Repeat

Notes

 

--feature-catalogue

F

A string specifying the name of the catalogue that defines the features and attributes in a vector dataset. One of {list dynamically populated from the catalogue control file}.

The names of the available catalogues can be accessed through application via the Object Catalogue environment variable in Tools > Options. The available catalogues are controlled by the Catalogue Control file. An example of a catalogue name is "S-57 ENC 3.1".

FALSE

This must be specified for HOB input.

--b-spline-order

B

A number specifying the degree of smoothing to apply.

The number must be between 3 and 10. A larger value results in more vertices being added to create smoother features.

FALSE

This must be specified explicitly.

Example

To use this command refer to the following example.

Example

Objective

Contours have been generated and now need to be smoothed.

Description

Command Line Syntax

The Bathy DataBASE catalogue is to be used.

--feature-catalogue "Bathy DataBASE"

Smoothing is to be applied to a degree of 6.

--b-spline-order 6

The data source is named ContourFeatures.hob and is located in the BatchSample directory, on the D drive.

D:\BatchSample\ContourFeatures.hob

The smoothed contours will be saved to a new file named SmoothedContours.hob in the data source location.

D:\BatchSample\SmoothedContours.hob

Command Line

carisbatch --run SmoothFeatures --feature-catalogue "Bathy DataBASE" --b-spline-order 6 D:\BatchSample\ContourFeatures.hob D:\BatchSample\SmoothedContours.hob

Outcome

A new HOB file is created containing the new smoothed contour features.

Extra Notes

N/A