CARIS Process Designer : CARIS Batch : S-57 Composer Processes : Export S-57 Product
 

Export S-57 Product

The ExportS57Product process exports an S-57 product file (.prd) to an S-57 file (.000).

An S-57 product consists of a product (.prd) file, and a sub-folder containing a HOB (.hob) file.

The product file, the sub-folder and the HOB file it contains all have the same root name. For example, gb4x0000 is the root name for gb4x0000.prd and .../gb4x0000/gb4x0000.hob. The the product file and sub-folder are contained in the same folder.

The S-57 product file specifies the name and path for the output S-57 file. It also specifies a number of options that are used by the export process. Options may override some of the options in the S-57 product file. Overriding options are written to the S-57 product file.

Input

Stand-alone S-57 product file (.prd).

Output

S-57 file with the same name as the S-57 product file.

Syntax

carisbatch --run ExportS57Product [options] <update>

Options

Long

Short

Description

Can Repeat

Notes

--create-new-edition

-N

Increment the edition in product file by one and apply the new edition to the new S-57 file

FALSE

Optional

--comment-for-dsid

-C

Comment in the S-57 data set ID (DSID) that overrides the existing comment in the product file.

FALSE

Optional

--issue-date

-I

The issue date for the S-57 file. The date will also be saved in the prfile and overrides the previous date.

Dates are specified in the standard ISO 8601 extended format:

YYYY-MM-DD

YYYY-DDD.

See ISO 8601 documentation for more information.

FALSE

Optional

Example

Example

Objective

Export the gb4x000.prd file to an S-57 file with the same name. A new edition, issue date and DSID comment are created for both files

Description

Command Line Syntax

Increment the file edition

--create-new-edition

Add comment concerning beacons and buoys.

--comment-for-dsid "Update beacons and buoys."

Set the issue date to Nov 16, 2016

--issue-date "2016-11-16"

Command Line

carisbatch --run ExportS57Product --create-new-edition --comment-for-dsid "Update beacons and buoys." --issue-date "2016-11-16" gb4x0000.prd