Table of Contents

Class SpatialDataPoint

Namespace
Honua.Sdk.Abstractions.Data
Assembly
Honua.Sdk.Abstractions.dll

Point coordinate used by data sampling requests.

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

Properties

Attributes

Additional provider-neutral point attributes.

public IReadOnlyDictionary<string, JsonElement>? Attributes { get; init; }

Property Value

IReadOnlyDictionary<string, JsonElement>

Crs

Optional coordinate reference system identifier.

public string? Crs { get; init; }

Property Value

string

PointId

Optional caller-stable point id for correlating batch responses.

public string? PointId { get; init; }

Property Value

string

X

X coordinate, normally longitude or projected easting.

public required double X { get; init; }

Property Value

double

Y

Y coordinate, normally latitude or projected northing.

public required double Y { get; init; }

Property Value

double

Z

Optional Z coordinate supplied by the caller or provider.

public double? Z { get; init; }

Property Value

double?

Methods

FromLatitudeLongitude(double, double, string?)

Creates a point from latitude/longitude ordered values, which is common for GPS APIs.

public static SpatialDataPoint FromLatitudeLongitude(double latitude, double longitude, string? pointId = null)

Parameters

latitude double

Latitude in decimal degrees.

longitude double

Longitude in decimal degrees.

pointId string

Optional caller-stable point id.

Returns

SpatialDataPoint

A WGS84 point.

FromLongitudeLatitude(double, double, string?)

Creates a point from longitude/latitude ordered values.

public static SpatialDataPoint FromLongitudeLatitude(double longitude, double latitude, string? pointId = null)

Parameters

longitude double

Longitude in decimal degrees.

latitude double

Latitude in decimal degrees.

pointId string

Optional caller-stable point id.

Returns

SpatialDataPoint

A WGS84 point.