Table of Contents

Struct GeometryDistance.FeatureDistance

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

The result of measuring a query point against a feature's geometry.

public readonly record struct GeometryDistance.FeatureDistance : IEquatable<GeometryDistance.FeatureDistance>
Implements
Inherited Members

Constructors

FeatureDistance(double, bool, S100GeometryType, double, double)

The result of measuring a query point against a feature's geometry.

public FeatureDistance(double DistanceMeters, bool Inside, S100GeometryType Primitive, double NearestLatitude, double NearestLongitude)

Parameters

DistanceMeters double

Distance from the query point to the nearest point of the feature's geometry, in metres. Zero when the point lies inside an area feature.

Inside bool

true when the point lies within an area feature's exterior ring (and outside any interior-ring hole).

Primitive S100GeometryType

The geometry primitive the distance was measured against (Point, Curve, or Surface).

NearestLatitude double

Latitude of the nearest point on the feature (the point itself when Inside).

NearestLongitude double

Longitude of the nearest point on the feature (the point itself when Inside).

Properties

DistanceMeters

Distance from the query point to the nearest point of the feature's geometry, in metres. Zero when the point lies inside an area feature.

public double DistanceMeters { get; init; }

Property Value

double

Inside

true when the point lies within an area feature's exterior ring (and outside any interior-ring hole).

public bool Inside { get; init; }

Property Value

bool

NearestLatitude

Latitude of the nearest point on the feature (the point itself when Inside).

public double NearestLatitude { get; init; }

Property Value

double

NearestLongitude

Longitude of the nearest point on the feature (the point itself when Inside).

public double NearestLongitude { get; init; }

Property Value

double

Primitive

The geometry primitive the distance was measured against (Point, Curve, or Surface).

public S100GeometryType Primitive { get; init; }

Property Value

S100GeometryType