Struct GeometryDistance.FeatureDistance
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
DistanceMetersdoubleDistance from the query point to the nearest point of the feature's geometry, in metres. Zero when the point lies inside an area feature.
Insidebooltruewhen the point lies within an area feature's exterior ring (and outside any interior-ring hole).PrimitiveS100GeometryTypeThe geometry primitive the distance was measured against (Point, Curve, or Surface).
NearestLatitudedoubleLatitude of the nearest point on the feature (the point itself when Inside).
NearestLongitudedoubleLongitude 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
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
NearestLatitude
Latitude of the nearest point on the feature (the point itself when Inside).
public double NearestLatitude { get; init; }
Property Value
NearestLongitude
Longitude of the nearest point on the feature (the point itself when Inside).
public double NearestLongitude { get; init; }
Property Value
Primitive
public S100GeometryType Primitive { get; init; }