Convert to United States National Grid (USNG)
Use the Aspose.GIS for .NET library to calculate a position in a United States National Grid (USNG) format. The GeoConvert class allows you to convert Latitude/Longitude coordinates to USNG format and vice versa.
Live Example
Aspose.GIS for .NET / C# presents you online free the “Convert to USNG” application, where you may to investigate the functionality and quality it works.
Code sample - Convert to USNG
The following code snippet shows you how to convert to USNG (United States National Grid).
// For complete examples and data files, please go to https://github.com/aspose-gis/Aspose.GIS-for-.NET | |
// Calculate a position in a United States National Grid (USNG) format | |
var position = GeoConvert.AsPointText(74.84, 172.13, PointFormats.Usng); | |
Console.WriteLine(position); |
Platform - .NET / C#
We supports Framework 4.7 or later under Windows, and .NET Core 2.0 or later under Windows or Linux