NetFabric.Numerics.Geography 1.0.0-beta06

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
This is a prerelease version of NetFabric.Numerics.Geography.
dotnet add package NetFabric.Numerics.Geography --version 1.0.0-beta06
NuGet\Install-Package NetFabric.Numerics.Geography -Version 1.0.0-beta06
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-beta06" />
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-beta06
#r "nuget: NetFabric.Numerics.Geography, 1.0.0-beta06"
#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-beta06&prerelease

// Install NetFabric.Numerics.Geography as a Cake Tool
#tool nuget:?package=NetFabric.Numerics.Geography&version=1.0.0-beta06&prerelease

NetFabric.Numerics.Geography

Your Strongly-Typed Solution for Geography Coordinates and Calculations in C#!

Key Features

  • Strongly-typed implementation of geography coordinates.
  • Utilizes the latest generic math features, compatible with .NET 7 and C# 11.

Introduction

Welcome to NetFabric.Numerics.Geography – a library tailored for precise geography calculations in C# with a focus on strong typing.

Getting Started

To make the most of NetFabric.Numerics.Geography, ensure you're operating within a compatible .NET 7 or higher environment. Once ready, explore the world of geography with strong typing.

Strongly-Typed Geography Coordinates

NetFabric.Numerics.Geography distinguishes itself with a strongly-typed approach to geography coordinates. It covers various datums, including WGS84, NAD83, and more, providing accuracy through strong typing:

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

Geography with Strong Typing

Explore how NetFabric.Numerics.Geography can enhance your geography calculations with strong typing. Discover the precision, safety, and versatility it brings to C# geography operations.

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 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.

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 194 10/24/2023
1.0.0-beta05 67 10/20/2023
1.0.0-beta04 86 6/11/2023
1.0.0-beta03 79 6/10/2023
1.0.0-beta02 74 6/9/2023