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
Crs
Optional coordinate reference system identifier.
public string? Crs { get; init; }
Property Value
PointId
Optional caller-stable point id for correlating batch responses.
public string? PointId { get; init; }
Property Value
X
X coordinate, normally longitude or projected easting.
public required double X { get; init; }
Property Value
Y
Y coordinate, normally latitude or projected northing.
public required double Y { get; init; }
Property Value
Z
Optional Z coordinate supplied by the caller or provider.
public double? Z { get; init; }
Property Value
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
latitudedoubleLatitude in decimal degrees.
longitudedoubleLongitude in decimal degrees.
pointIdstringOptional 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
longitudedoubleLongitude in decimal degrees.
latitudedoubleLatitude in decimal degrees.
pointIdstringOptional caller-stable point id.
Returns
- SpatialDataPoint
A WGS84 point.