Table of Contents

Class FeatureNames

Namespace
EncDotNet.S100.Datasets.Pipelines.Spec
Assembly
EncDotNet.S100.Datasets.Pipelines.dll

Extracts human-readable name candidates from an IS100Feature so that name-oriented tools (e.g. SearchFeaturesTool) can search across the several places a feature's name may live, independent of encoding.

public static class FeatureNames
Inheritance
FeatureNames
Inherited Members

Remarks

Names are not represented uniformly across the S-100 product line:

  • GML-encoded specs typically carry a repeatable complex attribute featureName whose name / displayName sub-attributes hold the text (S-100 Part 5 generic featureName compound).
  • Some specs also expose a simple objectName attribute, and the ISO 8211-encoded S-101 surfaces the legacy OBJNAM / NOBJNM simple attributes through its pipeline feature shape.

This helper unifies all of those into a flat list of (source, value) pairs so a caller can match a query against any of them without knowing the encoding.

Methods

Enumerate(IS100Feature)

Enumerates the non-empty name candidates for feature, each paired with the attribute path it came from (e.g. OBJNAM or featureName.name). Duplicate values from the same source path are not deduplicated.

public static IEnumerable<(string Source, string Value)> Enumerate(IS100Feature feature)

Parameters

feature IS100Feature

Returns

IEnumerable<(string Source, string Value)>