dymaptic.GeoBlazor.Core

dymaptic.GeoBlazor.Core.Results

ProximityResult Class

Object returned from the nearestCoordinate(), nearestVertex(), and nearestVertices() methods of GeometryEngine.

public record ProximityResult : System.IEquatable<dymaptic.GeoBlazor.Core.Results.ProximityResult>

Inheritance System.Object 🡒 ProximityResult

Implements System.IEquatable<ProximityResult>

Constructors

ProximityResult() Constructor

public ProximityResult();

Properties

ProximityResult.Coordinate Property

A vertex within the specified distance of the search.

public dymaptic.GeoBlazor.Core.Components.Geometries.Point Coordinate { get; set; }

Property Value

Point

ProximityResult.Distance Property

The distance from the inputPoint in the units of the view's spatial reference.

public double Distance { get; set; }

Property Value

System.Double

ProximityResult.IsEmpty Property

Indicates if it is an empty geometry.

public bool IsEmpty { get; set; }

Property Value

System.Boolean

ProximityResult.IsRightSide Property

Indicates if the nearest coordinate is on the right side or left side of the input point.

public bool IsRightSide { get; set; }

Property Value

System.Boolean

Remarks

Note: This property will only be present when calculateLeftRightSide is set to true when calling getNearestCoordinate().

ProximityResult.VertexIndex Property

The index of the vertex within the geometry's rings or paths.

public int VertexIndex { get; set; }

Property Value

System.Int32