Table of Contents

Class AxisOrderFindings

Namespace
EncDotNet.S100.Validation
Assembly
EncDotNet.S100.Core.dll

Turns a dataset's AxisOrderAssessment (issue #650) into a validation finding, so s100 validate, the viewer and MCP report swapped or inconsistent axis order alongside the product's rule pack.

public static class AxisOrderFindings
Inheritance
AxisOrderFindings
Inherited Members

Remarks

The rule id is {product}-PROJ-AXIS (for example S104-PROJ-AXIS), following the -PROJ- convention for findings the reader, rather than a normative rule, produces. The finding is a Warning, raised when the positions were swapped or fit the declared extent in neither order (IsWarning). An unverifiable order is not a defect (the GML envelope is optional), so it yields no finding; hosts report it from AxisOrderAssessment directly.

Methods

Append(ValidationReport?, AxisOrderAssessment?, string)

Appends the axis-order finding to report, counting the check as one evaluated rule whenever an assessment exists.

public static ValidationReport? Append(ValidationReport? report, AxisOrderAssessment? assessment, string productName)

Parameters

report ValidationReport

The product rule pack's report, or null when the product has none.

assessment AxisOrderAssessment

The dataset's axis-order assessment, or null.

productName string

The product, e.g. "S-104".

Returns

ValidationReport

report unchanged when there is no assessment; otherwise a report that includes the check.

RuleIdFor(string)

The rule id for productName (e.g. "S-104" gives "S104-PROJ-AXIS").

public static string RuleIdFor(string productName)

Parameters

productName string

Returns

string

ToFinding(AxisOrderAssessment?, string)

Returns the finding for assessment, or null when there is nothing to report.

public static ValidationFinding? ToFinding(AxisOrderAssessment? assessment, string productName)

Parameters

assessment AxisOrderAssessment

The dataset's axis-order assessment, or null.

productName string

The product, e.g. "S-104".

Returns

ValidationFinding