Class Wgs84CoordinateDetector
- Namespace
- Kuestenlogik.Bowire.Semantics.Detectors
- Assembly
- Kuestenlogik.Bowire.dll
Detects paired latitude/longitude fields at the same parent object
path. Requires both name patterns to match — the
range-only fallback the ADR mentions for the future is deliberately
not enabled in v1 so a coordinate-shaped pair of pixel offsets
(e.g. {x: 5.2, y: 9.1} or {u: -45.0, v: 87.3}) cannot
drag the map widget onto a non-geographic field pair.
public sealed class Wgs84CoordinateDetector : IBowireFieldDetector
- Inheritance
-
Wgs84CoordinateDetector
- Implements
- Inherited Members
Remarks
Name patterns (case-insensitive, anchored):
- Latitude —
latorlatitude. - Longitude —
lon,long,lng, orlongitude.
Range constraints rule out swapped fields and grossly-out-of-range
values: [-90, 90] for latitude, [-180, 180] for
longitude.
Two distinct lat-shaped fields at the same parent (e.g. a
start + end pair of lat entries with no
matching lon) do not emit any results — the rule is
strictly "one lat + one lon at the same parent."
Constructors
Wgs84CoordinateDetector()
public Wgs84CoordinateDetector()
Properties
Id
Stable id used by logging + the future "registered detectors"
surface. Conventionally a dotted namespace
(kuestenlogik.wgs84-coordinate); not required to be a URI.
public string Id { get; }
Property Value
Methods
Detect(in DetectionContext)
public IEnumerable<DetectionResult> Detect(in DetectionContext ctx)
Parameters
ctxDetectionContext