Class GeoJsonPointDetector

Namespace
Kuestenlogik.Bowire.Semantics.Detectors
Assembly
Kuestenlogik.Bowire.dll

Detects GeoJSON Point geometries — an object with type == "Point" and a 2- or 3-element coordinates array of numbers. GeoJSON pins coordinate order as [longitude, latitude] (and optional altitude), so the emitted tags go on coordinates[0] as longitude and coordinates[1] as latitude.

public sealed class GeoJsonPointDetector : IBowireFieldDetector
Inheritance
GeoJsonPointDetector
Implements
Inherited Members

Remarks

The third optional element (altitude in metres) is left unannotated in v1 — there's no built-in coordinate.altitude kind yet, and the map widget reads only lat/lon.

Range checks [-90, 90] on latitude and [-180, 180] on longitude catch the most obvious false-positive case: a 2D vector named "coordinates" in an object also called "Point" for unrelated reasons.

Constructors

GeoJsonPointDetector()

public GeoJsonPointDetector()

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

string

Methods

Detect(in DetectionContext)

public IEnumerable<DetectionResult> Detect(in DetectionContext ctx)

Parameters

ctx DetectionContext

Returns

IEnumerable<DetectionResult>