CARIS Batch Utility : Feature Editing Processes : Export Features to Shapefile
 

Export Features to Shapefile

Description

The ExportFeaturesToShapefile process exports features to files in Shapefile format.

Inputs

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

Outputs

A folder where files in Shapefile format will be exported. One Shapefile will be created for each distinct feature class and primitive type (line, point, area, etc.) found in the input.

Command Line Syntax

carisbatch --run ExportFeaturesToShapefile --feature-catalogue <value> <input> <output>

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.

Example

To use this command refer to the following example.

Example

Objective

You want to export a HOB file to the Shapefile format.

Description

Command Line Syntax

The input has features and attributes defined in the S-57 ENC 3.1 feature catalogue.

--feature-catalogue "S-57 ENC 3.1"

The input HOB file is named polygon.hob and located at D:\BatchSample.

D:\BatchSample\polygon.hob

The output files will be placed in a pre-existing folder called FeatureToShape located at D:\BatchSample.

D:\BatchSample\FeatureToShape

Command Line

carisbatch --run ExportFeaturesToShapefile --feature-catalogue "S-57 ENC 3.1" D:\BatchSample\polygon.hob D:\BatchSample\FeatureToShape

Outcome

A shapefile for each of the feature types in the input HOB is created in the designated folder.

Extra Notes

N/A