The CreateS57ProductFromDataset process creates a new S-57 standalone product from an S-57 dataset.
Input
S-57 base file to create the product from. The base file must be an existing S-57 .000 file. Any updates must reside in the same folder as the base file or in the folder specified by the UpdateFolder option.
Output
New S-57 product file. The file location must already exist. The file name will be used as the product's name.
Command Line Syntax
carisbatch --run CreateS57ProductFromDataset --export-type [options] <input> <output>
User Interface Command
File > New > Product > From S-57 Dataset
Options
Long | Description | Can Repeat | Notes |
|---|---|---|---|
--update-folder | The folder to search for S-57 update files. If not set, the base file's folder is used to locate updates. Use the Recurse option as well to search in subfolders. | FALSE | Optional. |
--recurse | If set, the update folder is recursed when searching for updates. If set but the UpdateFolder option is not used, the base S-57 file's folder is recursed when looking for updates. | FALSE | Optional. |
--export-type | A string specifying the next export type. • NEW_EDITION: The product's next export will be a new edition.The product's edition number will be set to the S-57 dataset's edition number, incremented by 1. The update number will be 0. • NEW_UPDATE: The product's next export will be a new update. The product's update number will be set to the S-57 dataset's update number, incremented by 1. The edition number will remain the same. • OVERWRITE: The product's next export will overwrite the current edition and update.The edition number and update number will remain the same as the S-57 dataset, thus overwriting the last base/update file. | FALSE | Required. |
--issue-date | A string specifying the issue date for the S-57 product. Dates are specified in the standard ISO 8601 extended format for batch processes, which is YYYY-MM-DD or YYYY-DDD. See ISO 8601 documentation for more information. This is the ISDT sub-field in the DSID section of the S-57 header. If not set, the date will default to "Set Date on Export", which sets the issue date to the current date on export. | FALSE | Optional. |
--sounding-rounding | Sounding rounding rule that is applied to soundings on export. Valid values are NONE (apply no sounding rounding on export) or the rule names listed in the SoundingRounding.xml configuration file. If not set, the default value is NONE. | FALSE | Optional. |
--exchange-set-type | A string specifying the exchange set type. • CREATE_NEW • UPDATE_EXISTING • NONE If not set, the default value is NONE. | FALSE | Optional. |
--exchange-set-name | A string specifying the exchange set name. | FALSE | Required if ExchangeSetType is not NONE. |
--exchange-set-location | A string specifying the exchange set location. | FALSE | Required if ExchangeSetType is not NONE. |
--use-s63-folder-structure | If set, the exchange set will be created using the S-63 folder structure. If not set, all files will be placed directly in the ENC_ROOT folder. Ignored if ExchangeSetType is not NONE. | FALSE | Optional. |
--read-me-file | A string specifying the readme.txt file to add to the exchange set. If not set, a readme.txt file will not be added to the exchange set. Ignored if ExchangeSetType is NONE. | FALSE | Optional. |
--exchange-set-comment | A string specifying the comment for the exchange set. If not set, a comment will not be added. Ignored if ExchangeSetType is NONE. | FALSE | Optional. |
-exchange-set-long-file-name | A string specifying the long file name for the exchange set. If not set, a long file name will not be added. Ignored if ExchangeSetType is NONE. | FALSE | Optional. |
Examples
Objective | Create a new update for an S-57 product. | |
Description | Command Line Syntax | |
Create a new update. |
| |
S-57 base file. |
| |
New S-57 product file. |
| |
Command Line |
| |
Outcome | A new update export for the S-57 product is created. | |
Objective | Overwrite the S-57 product. | |
Description | Command Line Syntax | |
Overwrite the current S-57 product edition. |
| |
Set the issue date to November 16, 2023. |
| |
Do not apply a sounding rounding rule on export. |
| |
Do not set an exchange set type. |
| |
S-57 base file to overwrite. |
| |
New S-57 product file. |
| |
Command Line |
| |
Outcome | The S-57 product is overwritten while keeping the same edition and update numbers. | |
Objective | Create a new edition of an S-57 product. | |
Description | Command Line Syntax | |
Search for updates in this folder. |
| |
Recurse the update folder when searching for updates. |
| |
Create a new edition. |
| |
Set the issue date to November 23, 2023. |
| |
Apply the IHO sounding rounding rule. |
| |
Create a new exchange set. |
| |
Name of the new exchange set. |
| |
Location of the new exchange set. |
| |
Create the new exchange set using the S-63 folder structure. |
| |
Path of the README file added to the new exchange set. |
| |
Comment added to the new exchange set. |
| |
Long file name for the new exchange set. |
| |
S-57 base file. |
| |
New S-57 product file. |
| |
Command Line |
| |
Outcome | A new edition export and a new exchange set for the S-57 product are created. | |