CARIS HPD : HPD® User Guide : HPD Web Publisher : Export to S-57
 

Export to S-57

The ExportToS57 command can export a group of verified features within an HPD schema to an S-57 file.

Features can be exported to the following S-57 file types:

Electronic Navigational Chart (ENC)

Additional Military Layers (AML)

Inland ENC (IENC)

The following conditions are enforced:

Exported features are contained within a two-point rectangle that is defined using WGS84 (LLDG) coordinates.

Only features that are completely inside or intersect the boundary are exported.

Intersecting features are clipped so that only those segments within the boundary are exported.

Spatial attributes are also exported as are any collections objects.

Metadata about the S-57 data is included in the parameters.

The exportToS57 command cannot be used with features that cross the 180° meridian – make sure that the S-57 file boundary is clipped to either side of the meridian.

The parameters for the file are described in the next section.

Parameters

The ExportToS57 command includes mandatory and optional parameters. These parameters define the boundary and metadata of the S-57 file. Since the ExportToS57 command is essentially a batch file, so you can save the file with a BAT extension and reuse it as needed.

While the parameters that define the metadata (header) of the S-57 file are optional, these must correspond to the parameter entries in the HPD S57ProductInfo.xml file. If a parameter value is not in S57ProductInfo.xml, then the export will fail. For more information on S57ProductInfo.xml, see Support Files.

An example of a batch file is shown below.

C:\Program Files\CARIS\HPD\<version>\Bin caris_hpd_web_publisher.exe exportToS57

OUTFILE=D:\NewFoundland_Overview.000 HPD_SERV=ORACLEDB

HPD_USER=HPDDB HPD_PASS=HPDDBPASSWORD HPD_USAGE="Overview(500000-10000000)"

HPD_PROFILE="S-57 Source"

S57_MINX=-56.6246244 S57_MINY=47.3636921 S57_MAXX=-50.6313968 S57_MAXY=49.0774078

S57_SCALE=250000 S57_ID=RAL S57_KEY=AML S57_VER=2.1 S57_INTU=0

S57_PUNI=1 S57_DUNI=1 S57_HUNI=1 S57_HDAT=2 S57_SDAT=23 S57_VDAT=3 S57_ATTF=1

S57_NATF=2

The following table describes the parameters in the file.

Parameter

Status

Description

OUTFILE

Mandatory

The S-57 file created from the export.

HPD_SERV

Mandatory

The Oracle database containing the HPD schema.

HPD_USER

Mandatory

Owner of the schema from which data is being exported.

HPD_PASS

Mandatory

Schema owner password

HPD_PROFILE

Mandatory

Name of the profile to be used when loading the verified source data for conversion. The name of the HPD profiles can be located in the Catalogue Editor.

HPD_USAGE

Mandatory

Name of the usage that contains the verified source data. Use double-quotation marks if the name contains a space.

For example, HPD_USAGE=”Approach(5000-34999)"

S57_MINX

Mandatory

The minimum x-value (longitude) for defining the area extent in decimal degrees. A minus sign indicates that the coordinate is in the Western hemisphere.

S57_MINY

Mandatory

The minimum y-value (latitude) for defining the area extent in decimal degrees. A minus sign indicates that the coordinate is in the Southern hemisphere.

S57_MAXX

Mandatory

The maximum x-value (longitude) for defining the area extent in decimal degrees. A minus sign indicates that the coordinate is in the Western hemisphere.

S57_MAXY

Mandatory

The maximum y-value (latitude) for defining the area extent in decimal degrees. A minus sign indicates that the coordinate is in the Southern hemisphere.

S57_SCALE

Mandatory

Scale of the S-57 file created from the exported features.

S57_ID

Optional

Product ID to designate S-57 product type (as defined in the Source Editor’s S57ProductInfo.xml file). This defaults to ENC if no value is entered.

S57_KEY

Optional

Product key to be used for export (as defined in the Source Editor’s S57ProductInfo.xml file) This defaults to ENC if no value is entered.

S57_VER

Optional

Product version (as defined in the Source Editor’s S57ProductInfo.xml file). This defaults to 3.2 if no value is entered.

S57_INTU

Optional

Usage for S-57 data (as defined in the S57ProductInfo.xml file). This defaults to 1 if no value is entered.

S57_PUNI

Optional

Positional accuracy units for S-57 file (as defined in the S57ProductInfo.xml file) This defaults to value with the smallest ID if no value is entered.

S57_DUNI

Optional

Depth units for the S-57 file (as defined in the S57ProductInfo.xml file). This defaults to value with the smallest ID if no value is entered.

S57_HUNI

Optional

Height units for the S-57 file (as defined in the S57ProductInfo.xml file). This defaults to value with the smallest ID if no value is entered.

S57_HDAT

Optional

Horizontal datum for S-57 file (as defined in the S57ProductInfo.xml file). This defaults to value with the smallest ID if no value is entered.

S57_SDAT

Optional

Sounding datum for S-57 file (as defined in the S57ProductInfo.xml file). This defaults to value with the smallest ID if no value is entered.

S57_VDAT

Optional

Vertical datum for S-57 file (as defined in the S57ProductInfo.xml file). This defaults to value with the smallest ID if no value is entered.

S57_ATTF

Optional

The ATTF lexical level for S-57 file (as defined in the S57ProductInfo.xml file). This defaults to value with the smallest ID if no value is entered.

S57_NATF

Optional

The NATF lexical level for S-57 file (as defined in the S57ProductInfo.xml file). This defaults to value with the smallest ID if no value is entered.