Class GeoPoint
A single geographic point in WGS-84, expressed as decimal degrees.
public sealed record GeoPoint : IEquatable<GeoPoint>
- Inheritance
-
GeoPoint
- Implements
- Inherited Members
Remarks
Per S-100 Part 10b §6.2 the canonical coordinate order in GML
gml:pos for EPSG:4326 is lat lon. This type
matches that convention. Tool requests that accept a
GeoPoint validate both components on the way in.
Constructors
GeoPoint(double, double)
A single geographic point in WGS-84, expressed as decimal degrees.
public GeoPoint(double Latitude, double Longitude)
Parameters
LatitudedoubleLatitude in degrees; valid range
[-90, 90].LongitudedoubleLongitude in degrees; valid range
[-180, 180].
Remarks
Per S-100 Part 10b §6.2 the canonical coordinate order in GML
gml:pos for EPSG:4326 is lat lon. This type
matches that convention. Tool requests that accept a
GeoPoint validate both components on the way in.
Properties
Latitude
Latitude in degrees; valid range [-90, 90].
public double Latitude { get; init; }
Property Value
Longitude
Longitude in degrees; valid range [-180, 180].
public double Longitude { get; init; }