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
reportValidationReportThe product rule pack's report, or
nullwhen the product has none.assessmentAxisOrderAssessmentThe dataset's axis-order assessment, or
null.productNamestringThe product, e.g.
"S-104".
Returns
- ValidationReport
reportunchanged 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
productNamestring
Returns
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
assessmentAxisOrderAssessmentThe dataset's axis-order assessment, or
null.productNamestringThe product, e.g.
"S-104".