Table of Contents

Class FeatureGeometryHit

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

A single vector feature found at a geographic point by HitTestFeatures(double, double, double) — the reusable, renderer-neutral unit of a geographic pick. Carries just enough to rank the hit and to resolve the full FeatureInfo from the same processor via GetFeatureInfoAt(int) (collision-free) or GetFeatureInfo(string).

public sealed record FeatureGeometryHit : IEquatable<FeatureGeometryHit>
Inheritance
FeatureGeometryHit
Implements
Inherited Members

Properties

DistanceMeters

Approximate distance from the pick to the feature in metres — 0 when Inside, otherwise the nearest-geometry distance that fell within the search radius.

public required double DistanceMeters { get; init; }

Property Value

double

FeatureRef

The feature reference string (dataset-specific id).

public required string FeatureRef { get; init; }

Property Value

string

FeatureType

The feature type code (the GML element local name, or the S-101 acronym) — matches the owning processor's FeatureType / FeatureType.

public required string FeatureType { get; init; }

Property Value

string

Inside

true when the pick lies inside an area feature's exterior ring (and outside any interior-ring hole); false for a point or curve feature matched within the search radius.

public required bool Inside { get; init; }

Property Value

bool

Ordinal

The feature's position within the processor's feature enumeration — the same index accepted by GetFeatureInfoAt(int) and reported by Ordinal. Prefer it over FeatureRef when resolving, so a producer that reuses a gml:id across features still routes to the hit feature.

public required int Ordinal { get; init; }

Property Value

int

Primitive

The geometry primitive the hit was measured against.

public required S100GeometryType Primitive { get; init; }

Property Value

S100GeometryType