NetFabric.Numerics.Geography
1.0.0-beta04
Prefix Reserved
This is a prerelease version of NetFabric.Numerics.Geography.
There is a newer prerelease version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package NetFabric.Numerics.Geography --version 1.0.0-beta04
NuGet\Install-Package NetFabric.Numerics.Geography -Version 1.0.0-beta04
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="NetFabric.Numerics.Geography" Version="1.0.0-beta04" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NetFabric.Numerics.Geography --version 1.0.0-beta04
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: NetFabric.Numerics.Geography, 1.0.0-beta04"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install NetFabric.Numerics.Geography as a Cake Addin #addin nuget:?package=NetFabric.Numerics.Geography&version=1.0.0-beta04&prerelease // Install NetFabric.Numerics.Geography as a Cake Tool #tool nuget:?package=NetFabric.Numerics.Geography&version=1.0.0-beta04&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
NetFabric.Numerics.Geography
NetFabric.Numerics.Geography provides a strongly-typed implementation of geography coordinates and calculations.
WARNING: NetFabric.Numerics.Geography makes use of generic math features only available in .NET 7 and C# 11. Make sure you are using a compatible version of the framework before using this library.
using NetFabric.Numerics.Geography.Geodetic2;
var wgs84Point = new Point<WGS84, Degrees, double>(new(0.0), new(0.0)); // LatLon point using WGS84 datum
var wgs1972Point = new Point<WGS1972, Degrees, double>(new(0.0), new(0.0)); // LatLon point using WGS1972 datum
var nad83Point = new Point<NAD83, Degrees, double>(new(0.0), new(0.0)); // LatLon point using NAD83 datum
var nad1927ConusPoint = new Point<NAD1927CONUS, Degrees, double>(new(0.0), new(0.0)); // LatLon point using NAD1927CONUS datum
var doublePrecisionPoint = new Point<WGS84, Degrees, double>(new(0.0), new(0.0)); // LatLon point with double precision
var singlePrecisionPoint = new Point<WGS84, Degrees, float>(new(0.0f), new(0.0f)); // LatLon point with single precision
var minutesPoint = new Point<WGS84, Degrees, double>(Angle.ToDegrees<double>(0, 0.0), Angle.ToDegrees<double>(0, 0.0)); // LatLon point using degrees and minutes
var minutesSecondsPoint = new Point<WGS84, Degrees, double>(Angle.ToDegrees<double>(0, 0, 0.0), Angle.ToDegrees<double>(0, 0, 0.0)); // LatLon point using degrees, minutes and seconds
var (degreesLatitude, minutesLatitude) = Angle.ToDegreesMinutes<double, int, double>(wgs84Point.Latitude); // Convert latitude to degrees and minutes
var (degreesLatitude2, minutesLatitude2, secondsLatitude) = Angle.ToDegreesMinutesSeconds<double, int, int, double>(wgs84Point.Latitude); // Convert latitude to degrees, minutes, and seconds
Credits
The following open-source projects are used to build and test this project:
License
This project is licensed under the MIT license. See the LICENSE file for more info.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net7.0
- NetFabric.Numerics (>= 1.0.0-beta04)
- NetFabric.Numerics.Angle (>= 1.0.0-beta05)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0-beta06 | 207 | 10/24/2023 |
1.0.0-beta05 | 77 | 10/20/2023 |
1.0.0-beta04 | 98 | 6/11/2023 |
1.0.0-beta03 | 92 | 6/10/2023 |
1.0.0-beta02 | 81 | 6/9/2023 |
Fix README.