Table of Contents

Class S57TopologyCheck

Namespace
EncDotNet.S100.Datasets.S57
Assembly
EncDotNet.S100.Datasets.S57.dll

Checks the chain-node topology of an S-57 dataset as S101ToS57Translator builds it: every edge ends at connected nodes, every area closes, the skin of the earth (Group 1) covers the coverage without gaps or overlaps, and M_COVR tiles its bounding box (S-57 Appendix B.1 §3.5, S-65 Annex C §2.5.1.1 and §3.5).

public static class S57TopologyCheck
Inheritance
S57TopologyCheck
Inherited Members

Remarks

A consistency check, not S-58 validation: it covers the rules a converter is responsible for. Areas are compared to a tolerance of AreaTolerance of the dataset's extent, so rounding to the coordinate grid is not reported.

Fields

AreaTolerance

The fraction of the dataset's extent below which an area difference is ignored.

public const double AreaTolerance = 1E-07

Field Value

double

Methods

Check(S57Document)

Checks document and returns every issue found.

public static IReadOnlyList<S57TopologyIssue> Check(S57Document document)

Parameters

document S57Document

Returns

IReadOnlyList<S57TopologyIssue>